@NotThreadSafe public static final class ImmutableSalesforceResponse.Builder extends Object
ImmutableSalesforceResponse.
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.
| Modifier and Type | Method and Description |
|---|---|
ImmutableSalesforceResponse |
build()
Builds a new
ImmutableSalesforceResponse. |
ImmutableSalesforceResponse.Builder |
errorReason(String errorReason)
Initializes the value for the
errorReason attribute. |
ImmutableSalesforceResponse.Builder |
from(SalesforceResponse instance)
Fill a builder with attribute values from the provided
SalesforceResponse instance. |
ImmutableSalesforceResponse.Builder |
response(String response)
Initializes the value for the
response attribute. |
ImmutableSalesforceResponse.Builder |
statusCode(int statusCode)
Initializes the value for the
statusCode attribute. |
@CanIgnoreReturnValue public final ImmutableSalesforceResponse.Builder from(SalesforceResponse instance)
SalesforceResponse instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableSalesforceResponse.Builder statusCode(int statusCode)
statusCode attribute.statusCode - The value for statusCodethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableSalesforceResponse.Builder response(@Nullable String response)
response attribute.response - The value for response (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableSalesforceResponse.Builder errorReason(String errorReason)
errorReason attribute.errorReason - The value for errorReasonthis builder for use in a chained invocationpublic ImmutableSalesforceResponse build()
ImmutableSalesforceResponse.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.