@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableSalesforceResponse extends Object implements SalesforceResponse
SalesforceResponse.
Use the builder to create immutable instances:
ImmutableSalesforceResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSalesforceResponse.Builder
Builds instances of type
ImmutableSalesforceResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSalesforceResponse.Builder |
builder()
Creates a builder for
ImmutableSalesforceResponse. |
static ImmutableSalesforceResponse |
copyOf(SalesforceResponse instance)
Creates an immutable copy of a
SalesforceResponse value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSalesforceResponse that have equal attribute values. |
String |
errorReason() |
int |
hashCode()
Computes a hash code from attributes:
statusCode, response, errorReason. |
String |
response() |
int |
statusCode() |
String |
toString()
Prints the immutable value
SalesforceResponse with attribute values. |
ImmutableSalesforceResponse |
withErrorReason(String value)
Copy the current immutable object by setting a value for the
errorReason attribute. |
ImmutableSalesforceResponse |
withResponse(String value)
Copy the current immutable object by setting a value for the
response attribute. |
ImmutableSalesforceResponse |
withStatusCode(int value)
Copy the current immutable object by setting a value for the
statusCode attribute. |
public int statusCode()
statusCode in interface SalesforceResponsestatusCode attribute@Nullable public String response()
response in interface SalesforceResponseresponse attributepublic String errorReason()
errorReason in interface SalesforceResponseerrorReason attributepublic final ImmutableSalesforceResponse withStatusCode(int value)
statusCode attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for statusCodethis objectpublic final ImmutableSalesforceResponse withResponse(@Nullable String value)
response attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for response (can be null)this objectpublic final ImmutableSalesforceResponse withErrorReason(String value)
errorReason attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for errorReasonthis objectpublic boolean equals(@Nullable Object another)
ImmutableSalesforceResponse that have equal attribute values.public int hashCode()
statusCode, response, errorReason.public String toString()
SalesforceResponse with attribute values.public static ImmutableSalesforceResponse copyOf(SalesforceResponse instance)
SalesforceResponse value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableSalesforceResponse.Builder builder()
ImmutableSalesforceResponse.
ImmutableSalesforceResponse.builder()
.statusCode(int) // required statusCode
.response(String | null) // nullable response
.errorReason(String) // required errorReason
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.