Class TrustedContact
java.lang.Object
markets.alpaca.client.openapi.broker.model.TrustedContact
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class TrustedContact
extends Object
implements Serializable
This model input is optional. However, the client should make reasonable effort to obtain the trusted contact information. See more details in [FINRA Notice 17-11](https://www.finra.org/sites/default/files/Regulatory-Notice-17-11.pdf) Only one of the following is required: * email_address * phone_number * street_address
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddStreetAddressItem(String streetAddressItem) emailAddress(String emailAddress) booleanfamilyName(String familyName) static TrustedContactCreate an instance of TrustedContact given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getCity()required if `street_address` is set[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html).at least one of `email_address`, `phone_number` or `street_address` is requiredGet familyNameGet givenNameat least one of `email_address`, `phone_number` or `street_address` is requiredrequired if `street_address` is setgetState()required if `street_address` is setat least one of `email_address`, `phone_number` or `street_address` is requiredinthashCode()phoneNumber(String phoneNumber) postalCode(String postalCode) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetCountry(String country) voidsetEmailAddress(String emailAddress) voidsetFamilyName(String familyName) voidsetGivenName(String givenName) voidsetPhoneNumber(String phoneNumber) voidsetPostalCode(String postalCode) voidvoidsetStreetAddress(List<String> streetAddress) streetAddress(List<String> streetAddress) toJson()Convert an instance of TrustedContact to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CITY
- See Also:
-
SERIALIZED_NAME_COUNTRY
- See Also:
-
SERIALIZED_NAME_EMAIL_ADDRESS
- See Also:
-
SERIALIZED_NAME_FAMILY_NAME
- See Also:
-
SERIALIZED_NAME_GIVEN_NAME
- See Also:
-
SERIALIZED_NAME_PHONE_NUMBER
- See Also:
-
SERIALIZED_NAME_POSTAL_CODE
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_STREET_ADDRESS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TrustedContact
public TrustedContact()
-
-
Method Details
-
city
-
getCity
required if `street_address` is set- Returns:
- city
-
setCity
-
country
-
getCountry
[ISO 3166-1 alpha-3](https://www.iso.org/iso-3166-country-codes.html). required if `street_address` is set- Returns:
- country
-
setCountry
-
emailAddress
-
getEmailAddress
at least one of `email_address`, `phone_number` or `street_address` is required- Returns:
- emailAddress
-
setEmailAddress
-
familyName
-
getFamilyName
Get familyName- Returns:
- familyName
-
setFamilyName
-
givenName
-
getGivenName
Get givenName- Returns:
- givenName
-
setGivenName
-
phoneNumber
-
getPhoneNumber
at least one of `email_address`, `phone_number` or `street_address` is required- Returns:
- phoneNumber
-
setPhoneNumber
-
postalCode
-
getPostalCode
required if `street_address` is set- Returns:
- postalCode
-
setPostalCode
-
state
-
getState
required if `street_address` is set- Returns:
- state
-
setState
-
streetAddress
-
addStreetAddressItem
-
getStreetAddress
at least one of `email_address`, `phone_number` or `street_address` is required- Returns:
- streetAddress
-
setStreetAddress
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the TrustedContact instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to TrustedContact
-
fromJson
Create an instance of TrustedContact given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TrustedContact
- Throws:
IOException- if the JSON string is invalid with respect to TrustedContact
-
toJson
Convert an instance of TrustedContact to an JSON string- Returns:
- JSON string
-