Class DomainName
- All Implemented Interfaces:
- Serializable,- SdkPojo,- ToCopyableBuilder<DomainName.Builder,- DomainName> 
Represents a custom domain name as a user-friendly host name of an API (RestApi).
- See Also:
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic DomainName.Builderbuilder()final StringThe reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.final StringThe name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.final InstantThe timestamp when the certificate that was used by edge-optimized endpoint or private endpoint for this domain name was uploaded.final StringThe domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint.final StringThe region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint.final StringThe custom domain name as an API host name, for example,my-api.example.com.final StringThe ARN of the domain name.final StringThe identifier for the domain name resource.final DomainNameStatusThe status of the DomainName migration.final StringThe status of the DomainName migration.final StringAn optional text message containing detailed information about status of the DomainName migration.final EndpointConfigurationThe endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final StringA stringified JSON policy document that applies to the API Gateway Management service for this DomainName.final MutualTlsAuthenticationThe mutual TLS authentication configuration for a custom domain name.final StringThe ARN of the public certificate issued by ACM to validate ownership of your custom domain.final Stringpolicy()A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration.final StringThe reference to an Amazon Web Services-managed certificate that will be used for validating the regional domain name.final StringThe name of the certificate that will be used for validating the regional domain name.final StringThe domain name associated with the regional endpoint for this custom domain name.final StringThe region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.final RoutingModeThe routing mode for this domain name.final StringThe routing mode for this domain name.final SecurityPolicyThe Transport Layer Security (TLS) version + cipher suite for this DomainName.final StringThe Transport Layer Security (TLS) version + cipher suite for this DomainName.static Class<? extends DomainName.Builder> tags()The collection of tags.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuildercopy
- 
Method Details- 
domainNameThe custom domain name as an API host name, for example, my-api.example.com.- Returns:
- The custom domain name as an API host name, for example, my-api.example.com.
 
- 
domainNameIdThe identifier for the domain name resource. Supported only for private custom domain names. - Returns:
- The identifier for the domain name resource. Supported only for private custom domain names.
 
- 
domainNameArnThe ARN of the domain name. - Returns:
- The ARN of the domain name.
 
- 
certificateNameThe name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. - Returns:
- The name of the certificate that will be used by edge-optimized endpoint or private endpoint for this domain name.
 
- 
certificateArnThe reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. Certificate Manager is the only supported source. - Returns:
- The reference to an Amazon Web Services-managed certificate that will be used by edge-optimized endpoint or private endpoint for this domain name. Certificate Manager is the only supported source.
 
- 
certificateUploadDateThe timestamp when the certificate that was used by edge-optimized endpoint or private endpoint for this domain name was uploaded. - Returns:
- The timestamp when the certificate that was used by edge-optimized endpoint or private endpoint for this domain name was uploaded.
 
- 
regionalDomainNameThe domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint. - Returns:
- The domain name associated with the regional endpoint for this custom domain name. You set up this association by adding a DNS record that points the custom domain name to this regional domain name. The regional domain name is returned by API Gateway when you create a regional endpoint.
 
- 
regionalHostedZoneIdThe region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway. - Returns:
- The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.
 
- 
regionalCertificateNameThe name of the certificate that will be used for validating the regional domain name. - Returns:
- The name of the certificate that will be used for validating the regional domain name.
 
- 
regionalCertificateArnThe reference to an Amazon Web Services-managed certificate that will be used for validating the regional domain name. Certificate Manager is the only supported source. - Returns:
- The reference to an Amazon Web Services-managed certificate that will be used for validating the regional domain name. Certificate Manager is the only supported source.
 
- 
distributionDomainNameThe domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation. - Returns:
- The domain name of the Amazon CloudFront distribution associated with this custom domain name for an edge-optimized endpoint. You set up this association when adding a DNS record pointing the custom domain name to this distribution name. For more information about CloudFront distributions, see the Amazon CloudFront documentation.
 
- 
distributionHostedZoneIdThe region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is Z2FDTNDATAQYW2for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.- Returns:
- The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint. The valid value is
         Z2FDTNDATAQYW2for all the regions. For more information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.
 
- 
endpointConfigurationThe endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name. - Returns:
- The endpoint configuration of this DomainName showing the endpoint types and IP address types of the domain name.
 
- 
domainNameStatusThe status of the DomainName migration. The valid values are AVAILABLEandUPDATING. If the status isUPDATING, the domain cannot be modified further until the existing operation is complete. If it isAVAILABLE, the domain can be updated.If the service returns an enum value that is not available in the current SDK version, domainNameStatuswill returnDomainNameStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdomainNameStatusAsString().- Returns:
- The status of the DomainName migration. The valid values are AVAILABLEandUPDATING. If the status isUPDATING, the domain cannot be modified further until the existing operation is complete. If it isAVAILABLE, the domain can be updated.
- See Also:
 
- 
domainNameStatusAsStringThe status of the DomainName migration. The valid values are AVAILABLEandUPDATING. If the status isUPDATING, the domain cannot be modified further until the existing operation is complete. If it isAVAILABLE, the domain can be updated.If the service returns an enum value that is not available in the current SDK version, domainNameStatuswill returnDomainNameStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdomainNameStatusAsString().- Returns:
- The status of the DomainName migration. The valid values are AVAILABLEandUPDATING. If the status isUPDATING, the domain cannot be modified further until the existing operation is complete. If it isAVAILABLE, the domain can be updated.
- See Also:
 
- 
domainNameStatusMessageAn optional text message containing detailed information about status of the DomainName migration. - Returns:
- An optional text message containing detailed information about status of the DomainName migration.
 
- 
securityPolicyThe Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0andTLS_1_2.If the service returns an enum value that is not available in the current SDK version, securityPolicywill returnSecurityPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityPolicyAsString().- Returns:
- The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
         TLS_1_0andTLS_1_2.
- See Also:
 
- 
securityPolicyAsStringThe Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are TLS_1_0andTLS_1_2.If the service returns an enum value that is not available in the current SDK version, securityPolicywill returnSecurityPolicy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsecurityPolicyAsString().- Returns:
- The Transport Layer Security (TLS) version + cipher suite for this DomainName. The valid values are
         TLS_1_0andTLS_1_2.
- See Also:
 
- 
hasTagspublic final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
- 
tagsThe collection of tags. Each tag element is associated with a given resource. Attempts to modify the collection returned by this method will result in an UnsupportedOperationException. This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasTags()method.- Returns:
- The collection of tags. Each tag element is associated with a given resource.
 
- 
mutualTlsAuthenticationThe mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API. - Returns:
- The mutual TLS authentication configuration for a custom domain name. If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
 
- 
ownershipVerificationCertificateArnThe ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn. - Returns:
- The ARN of the public certificate issued by ACM to validate ownership of your custom domain. Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the regionalCertificateArn.
 
- 
managementPolicyA stringified JSON policy document that applies to the API Gateway Management service for this DomainName. This policy document controls access for access association sources to create domain name access associations with this DomainName. Supported only for private custom domain names. - Returns:
- A stringified JSON policy document that applies to the API Gateway Management service for this DomainName. This policy document controls access for access association sources to create domain name access associations with this DomainName. Supported only for private custom domain names.
 
- 
policyA stringified JSON policy document that applies to the execute-apiservice for this DomainName regardless of the caller and Method configuration. Supported only for private custom domain names.- Returns:
- A stringified JSON policy document that applies to the execute-apiservice for this DomainName regardless of the caller and Method configuration. Supported only for private custom domain names.
 
- 
routingModeThe routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs. If the service returns an enum value that is not available in the current SDK version, routingModewill returnRoutingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroutingModeAsString().- Returns:
- The routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.
- See Also:
 
- 
routingModeAsStringThe routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs. If the service returns an enum value that is not available in the current SDK version, routingModewill returnRoutingMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroutingModeAsString().- Returns:
- The routing mode for this domain name. The routing mode determines how API Gateway sends traffic from your custom domain name to your private APIs.
- See Also:
 
- 
toBuilderDescription copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
- toBuilderin interface- ToCopyableBuilder<DomainName.Builder,- DomainName> 
- Returns:
- a builder for type T
 
- 
builder
- 
serializableBuilderClass
- 
hashCode
- 
equals
- 
equalsBySdkFieldsDescription copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
- equalsBySdkFieldsin interface- SdkPojo
- Parameters:
- obj- the object to be compared with
- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
 
- 
toString
- 
getValueForField
- 
sdkFields
- 
sdkFieldNameToField- Specified by:
- sdkFieldNameToFieldin interface- SdkPojo
- Returns:
- The mapping between the field name and its corresponding field.
 
 
-