Class StreamingDistributionConfig
java.lang.Object
com.amazonaws.services.cloudfront.model.StreamingDistributionConfig
- All Implemented Interfaces:
Serializable
,Cloneable
The configuration for the streaming distribution.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for StreamingDistributionConfig object.StreamingDistributionConfig
(String callerReference, S3Origin s3Origin, Boolean enabled) Constructs a new StreamingDistributionConfig object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.A unique number that ensures the request can't be replayed.Any comments you want to include about the streaming distribution.Whether the streaming distribution is enabled to accept end user requests for content.A complex type that controls whether access logs are written for the streaming distribution.A complex type that contains information about price class for this streaming distribution.A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.int
hashCode()
Whether the streaming distribution is enabled to accept end user requests for content.void
setAliases
(Aliases aliases) A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.void
setCallerReference
(String callerReference) A unique number that ensures the request can't be replayed.void
setComment
(String comment) Any comments you want to include about the streaming distribution.void
setEnabled
(Boolean enabled) Whether the streaming distribution is enabled to accept end user requests for content.void
setLogging
(StreamingLoggingConfig logging) A complex type that controls whether access logs are written for the streaming distribution.void
setPriceClass
(PriceClass priceClass) A complex type that contains information about price class for this streaming distribution.void
setPriceClass
(String priceClass) A complex type that contains information about price class for this streaming distribution.void
setS3Origin
(S3Origin s3Origin) A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.void
setTrustedSigners
(TrustedSigners trustedSigners) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.toString()
Returns a string representation of this object; useful for testing and debugging.withAliases
(Aliases aliases) A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.withCallerReference
(String callerReference) A unique number that ensures the request can't be replayed.withComment
(String comment) Any comments you want to include about the streaming distribution.withEnabled
(Boolean enabled) Whether the streaming distribution is enabled to accept end user requests for content.withLogging
(StreamingLoggingConfig logging) A complex type that controls whether access logs are written for the streaming distribution.withPriceClass
(PriceClass priceClass) A complex type that contains information about price class for this streaming distribution.withPriceClass
(String priceClass) A complex type that contains information about price class for this streaming distribution.withS3Origin
(S3Origin s3Origin) A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.withTrustedSigners
(TrustedSigners trustedSigners) A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content.
-
Constructor Details
-
StreamingDistributionConfig
public StreamingDistributionConfig()Default constructor for StreamingDistributionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
StreamingDistributionConfig
Constructs a new StreamingDistributionConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
callerReference
- A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.s3Origin
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.enabled
- Whether the streaming distribution is enabled to accept end user requests for content.
-
-
Method Details
-
setCallerReference
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.- Parameters:
callerReference
- A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
-
getCallerReference
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.- Returns:
- A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.
-
withCallerReference
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.- Parameters:
callerReference
- A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the StreamingDistributionConfig object), a new streaming distribution is created. If the CallerReference is a value you already sent in a previous request to create a streaming distribution, and the content of the StreamingDistributionConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create a streaming distribution but the content of the StreamingDistributionConfig is different from the original request, CloudFront returns a DistributionAlreadyExists error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3Origin
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.- Parameters:
s3Origin
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
-
getS3Origin
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.- Returns:
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
-
withS3Origin
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.- Parameters:
s3Origin
- A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAliases
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.- Parameters:
aliases
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
-
getAliases
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.- Returns:
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.
-
withAliases
A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.- Parameters:
aliases
- A complex type that contains information about CNAMEs (alternate domain names), if any, for this streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setComment
Any comments you want to include about the streaming distribution.- Parameters:
comment
- Any comments you want to include about the streaming distribution.
-
getComment
Any comments you want to include about the streaming distribution.- Returns:
- Any comments you want to include about the streaming distribution.
-
withComment
Any comments you want to include about the streaming distribution.- Parameters:
comment
- Any comments you want to include about the streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLogging
A complex type that controls whether access logs are written for the streaming distribution.- Parameters:
logging
- A complex type that controls whether access logs are written for the streaming distribution.
-
getLogging
A complex type that controls whether access logs are written for the streaming distribution.- Returns:
- A complex type that controls whether access logs are written for the streaming distribution.
-
withLogging
A complex type that controls whether access logs are written for the streaming distribution.- Parameters:
logging
- A complex type that controls whether access logs are written for the streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setTrustedSigners
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.- Parameters:
trustedSigners
- A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
-
getTrustedSigners
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.- Returns:
- A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.
-
withTrustedSigners
A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.- Parameters:
trustedSigners
- A complex type that specifies the AWS accounts, if any, that you want to allow to create signed URLs for private content. If you want to require signed URLs in requests for objects in the target origin that match the PathPattern for this cache behavior, specify true for Enabled, and specify the applicable values for Quantity and Items. For more information, go to Using a Signed URL to Serve Private Content in the Amazon CloudFront Developer Guide. If you don't want to require signed URLs in requests for objects that match PathPattern, specify false for Enabled and 0 for Quantity. Omit Items. To add, change, or remove one or more trusted signers, change Enabled to true (if it's currently false), change Quantity as applicable, and specify all of the trusted signers that you want to include in the updated distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPriceClass
A complex type that contains information about price class for this streaming distribution.- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- See Also:
-
getPriceClass
A complex type that contains information about price class for this streaming distribution.- Returns:
- A complex type that contains information about price class for this streaming distribution.
- See Also:
-
withPriceClass
A complex type that contains information about price class for this streaming distribution.- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setPriceClass
A complex type that contains information about price class for this streaming distribution.- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- See Also:
-
withPriceClass
A complex type that contains information about price class for this streaming distribution.- Parameters:
priceClass
- A complex type that contains information about price class for this streaming distribution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setEnabled
Whether the streaming distribution is enabled to accept end user requests for content.- Parameters:
enabled
- Whether the streaming distribution is enabled to accept end user requests for content.
-
getEnabled
Whether the streaming distribution is enabled to accept end user requests for content.- Returns:
- Whether the streaming distribution is enabled to accept end user requests for content.
-
withEnabled
Whether the streaming distribution is enabled to accept end user requests for content.- Parameters:
enabled
- Whether the streaming distribution is enabled to accept end user requests for content.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isEnabled
Whether the streaming distribution is enabled to accept end user requests for content.- Returns:
- Whether the streaming distribution is enabled to accept end user requests for content.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-