@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DomainName extends Object implements Serializable, Cloneable, StructuredPojo
Represents a custom domain name as a user-friendly host name of an API (RestApi).
When you deploy an API, Amazon API Gateway creates a default host name for the API. This default API host name is of
the {restapi-id}.execute-api.{region}.amazonaws.com
format. With the default host name, you can access
the API's root resource with the URL of https://{restapi-id}.execute-api.{region}.amazonaws.com/{stage}/
. When you set up a custom domain name of apis.example.com
for this API, you can then access the same
resource using the URL of the https://apis.examples.com/myApi
, where myApi
is the base path
mapping (BasePathMapping) of your API under the custom domain name.
Constructor and Description |
---|
DomainName() |
Modifier and Type | Method and Description |
---|---|
DomainName |
clone() |
boolean |
equals(Object obj) |
String |
getCertificateArn()
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name.
|
String |
getCertificateName()
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
|
Date |
getCertificateUploadDate()
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
|
String |
getDistributionDomainName()
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an
edge-optimized endpoint.
|
String |
getDomainName()
The name of the DomainName resource.
|
EndpointConfiguration |
getEndpointConfiguration()
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
String |
getRegionalCertificateArn()
The reference to an AWS-managed certificate that will be used for validating the regional domain name.
|
String |
getRegionalCertificateName()
The name of the certificate that will be used for validating the regional domain name.
|
String |
getRegionalDomainName()
The domain name associated with the regional endpoint for this custom domain name.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCertificateArn(String certificateArn)
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name.
|
void |
setCertificateName(String certificateName)
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
|
void |
setCertificateUploadDate(Date certificateUploadDate)
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
|
void |
setDistributionDomainName(String distributionDomainName)
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an
edge-optimized endpoint.
|
void |
setDomainName(String domainName)
The name of the DomainName resource.
|
void |
setEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
void |
setRegionalCertificateArn(String regionalCertificateArn)
The reference to an AWS-managed certificate that will be used for validating the regional domain name.
|
void |
setRegionalCertificateName(String regionalCertificateName)
The name of the certificate that will be used for validating the regional domain name.
|
void |
setRegionalDomainName(String regionalDomainName)
The domain name associated with the regional endpoint for this custom domain name.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DomainName |
withCertificateArn(String certificateArn)
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name.
|
DomainName |
withCertificateName(String certificateName)
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
|
DomainName |
withCertificateUploadDate(Date certificateUploadDate)
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
|
DomainName |
withDistributionDomainName(String distributionDomainName)
The domain name of the Amazon CloudFront distribution associated with this custom domain name for an
edge-optimized endpoint.
|
DomainName |
withDomainName(String domainName)
The name of the DomainName resource.
|
DomainName |
withEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
DomainName |
withRegionalCertificateArn(String regionalCertificateArn)
The reference to an AWS-managed certificate that will be used for validating the regional domain name.
|
DomainName |
withRegionalCertificateName(String regionalCertificateName)
The name of the certificate that will be used for validating the regional domain name.
|
DomainName |
withRegionalDomainName(String regionalDomainName)
The domain name associated with the regional endpoint for this custom domain name.
|
public void setDomainName(String domainName)
The name of the DomainName resource.
domainName
- The name of the DomainName resource.public String getDomainName()
The name of the DomainName resource.
public DomainName withDomainName(String domainName)
The name of the DomainName resource.
domainName
- The name of the DomainName resource.public void setCertificateName(String certificateName)
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateName
- The name of the certificate that will be used by edge-optimized endpoint for this domain name.public String getCertificateName()
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
public DomainName withCertificateName(String certificateName)
The name of the certificate that will be used by edge-optimized endpoint for this domain name.
certificateName
- The name of the certificate that will be used by edge-optimized endpoint for this domain name.public void setCertificateArn(String certificateArn)
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateArn
- The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain
name. AWS Certificate Manager is the only supported source.public String getCertificateArn()
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
public DomainName withCertificateArn(String certificateArn)
The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain name. AWS Certificate Manager is the only supported source.
certificateArn
- The reference to an AWS-managed certificate that will be used by edge-optimized endpoint for this domain
name. AWS Certificate Manager is the only supported source.public void setCertificateUploadDate(Date certificateUploadDate)
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
certificateUploadDate
- The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was
uploaded.public Date getCertificateUploadDate()
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
public DomainName withCertificateUploadDate(Date certificateUploadDate)
The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was uploaded.
certificateUploadDate
- The timestamp when the certificate that was used by edge-optimized endpoint for this domain name was
uploaded.public void setRegionalDomainName(String regionalDomainName)
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 Amazon API Gateway when you create a regional endpoint.
regionalDomainName
- 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 Amazon API Gateway when you create a regional endpoint.public String getRegionalDomainName()
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 Amazon API Gateway when you create a regional endpoint.
public DomainName withRegionalDomainName(String regionalDomainName)
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 Amazon API Gateway when you create a regional endpoint.
regionalDomainName
- 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 Amazon API Gateway when you create a regional endpoint.public void setRegionalCertificateName(String regionalCertificateName)
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateName
- The name of the certificate that will be used for validating the regional domain name.public String getRegionalCertificateName()
The name of the certificate that will be used for validating the regional domain name.
public DomainName withRegionalCertificateName(String regionalCertificateName)
The name of the certificate that will be used for validating the regional domain name.
regionalCertificateName
- The name of the certificate that will be used for validating the regional domain name.public void setRegionalCertificateArn(String regionalCertificateArn)
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
regionalCertificateArn
- The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS
Certificate Manager is the only supported source.public String getRegionalCertificateArn()
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
public DomainName withRegionalCertificateArn(String regionalCertificateArn)
The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS Certificate Manager is the only supported source.
regionalCertificateArn
- The reference to an AWS-managed certificate that will be used for validating the regional domain name. AWS
Certificate Manager is the only supported source.public void setDistributionDomainName(String distributionDomainName)
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.
distributionDomainName
- 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.public String getDistributionDomainName()
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.
public DomainName withDistributionDomainName(String distributionDomainName)
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.
distributionDomainName
- 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.public void setEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
endpointConfiguration
- The endpoint configuration of this DomainName showing the endpoint types of the domain name.public EndpointConfiguration getEndpointConfiguration()
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
public DomainName withEndpointConfiguration(EndpointConfiguration endpointConfiguration)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
endpointConfiguration
- The endpoint configuration of this DomainName showing the endpoint types of the domain name.public String toString()
toString
in class Object
Object.toString()
public DomainName clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.