@Generated(value="OracleSDKGenerator", comments="API Version: v1") public final class Addresses extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A physical mailing address for this User, as described in (address Element). Canonical Type
Values of work, home, and other. The value attribute is a complex type with the following
sub-attributes.
Note: Objects should always be created or deserialized using the Addresses.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Addresses.Builder
, which maintain a
set of all explicitly set fields called Addresses.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Addresses.Builder |
static class |
Addresses.Type
A label indicating the attribute’s function; e.g., ‘work’ or ‘home’.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Addresses(String formatted,
String streetAddress,
String locality,
String region,
String postalCode,
String country,
Addresses.Type type,
Boolean primary)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Addresses.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
String |
getCountry()
The country name component.
|
String |
getFormatted()
The full mailing address, formatted for display or use with a mailing label.
|
String |
getLocality()
The city or locality component.
|
String |
getPostalCode()
The zipcode or postal code component.
|
Boolean |
getPrimary()
A Boolean value indicating the ‘primary’ or preferred attribute value for this attribute.
|
String |
getRegion()
The state or region component.
|
String |
getStreetAddress()
The full street address component, which may include house number, street name, PO BOX, and
multi-line extended street address information.
|
Addresses.Type |
getType()
A label indicating the attribute’s function; e.g., ‘work’ or ‘home’.
|
int |
hashCode() |
Addresses.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"formatted","streetAddress","locality","region","postalCode","country","type","primary"}) public Addresses(String formatted, String streetAddress, String locality, String region, String postalCode, String country, Addresses.Type type, Boolean primary)
public static Addresses.Builder builder()
Create a new builder.
public Addresses.Builder toBuilder()
public String getFormatted()
The full mailing address, formatted for display or use with a mailing label. This attribute MAY contain newlines.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getStreetAddress()
The full street address component, which may include house number, street name, PO BOX, and multi-line extended street address information. This attribute MAY contain newlines.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getLocality()
The city or locality component.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getRegion()
The state or region component.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getPostalCode()
The zipcode or postal code component.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public String getCountry()
The country name component.
*SCIM++ Properties:** - caseExact: false - idcsCanonicalValueSourceFilter: attrName eq "countries" and attrValues.value eq "upper($(country))" - idcsCanonicalValueSourceResourceType: AllowedValue - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: string - uniqueness: none
public Addresses.Type getType()
A label indicating the attribute’s function; e.g., ‘work’ or ‘home’.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: true - returned: default - type: string - uniqueness: none
public Boolean getPrimary()
A Boolean value indicating the ‘primary’ or preferred attribute value for this attribute. The primary attribute value ‘true’ MUST appear no more than once.
*SCIM++ Properties:** - caseExact: false - idcsSearchable: true - multiValued: false - mutability: readWrite - required: false - returned: default - type: boolean - uniqueness: none
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.