Class ImmutableCompanyHeaderResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.company.ImmutableCompanyHeaderResponse.Builder
- Enclosing class:
- ImmutableCompanyHeaderResponse
@Generated(from="CompanyHeaderResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableCompanyHeaderResponse.Builder
extends Object
Builds instances of type
ImmutableCompanyHeaderResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newImmutableCompanyHeaderResponse.Initializes the value for thecompanyIdattribute.companyName(String companyName) Initializes the value for thecompanyNameattribute.from(CompanyHeaderResponse instance) Fill a builder with attribute values from the providedCompanyHeaderResponseinstance.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableCompanyHeaderResponse.Builder from(CompanyHeaderResponse instance) Fill a builder with attribute values from the providedCompanyHeaderResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
companyId
@CanIgnoreReturnValue public final ImmutableCompanyHeaderResponse.Builder companyId(String companyId) Initializes the value for thecompanyIdattribute.- Parameters:
companyId- The value for companyId- Returns:
thisbuilder for use in a chained invocation
-
companyName
@CanIgnoreReturnValue public final ImmutableCompanyHeaderResponse.Builder companyName(String companyName) Initializes the value for thecompanyNameattribute.- Parameters:
companyName- The value for companyName- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableCompanyHeaderResponse.- Returns:
- An immutable instance of CompanyHeaderResponse
- Throws:
IllegalStateException- if any required attributes are missing
-