public class StreamingDistributionConfig extends Object implements Serializable, Cloneable
The configuration for the streaming distribution.
Constructor and Description |
---|
StreamingDistributionConfig()
Default constructor for a new StreamingDistributionConfig object.
|
StreamingDistributionConfig(String callerReference,
S3Origin s3Origin,
Boolean enabled)
Constructs a new StreamingDistributionConfig object.
|
Modifier and Type | Method and Description |
---|---|
StreamingDistributionConfig |
clone() |
boolean |
equals(Object obj) |
Aliases |
getAliases()
A complex type that contains information about CNAMEs (alternate
domain names), if any, for this streaming distribution.
|
String |
getCallerReference()
A unique number that ensures the request can't be replayed.
|
String |
getComment()
Any comments you want to include about the streaming distribution.
|
Boolean |
getEnabled()
Whether the streaming distribution is enabled to accept end user
requests for content.
|
StreamingLoggingConfig |
getLogging()
A complex type that controls whether access logs are written for the
streaming distribution.
|
String |
getPriceClass()
A complex type that contains information about price class for this
streaming distribution.
|
S3Origin |
getS3Origin()
A complex type that contains information about the Amazon S3 bucket
from which you want CloudFront to get your media files for
distribution.
|
TrustedSigners |
getTrustedSigners()
A complex type that specifies the AWS accounts, if any, that you want
to allow to create signed URLs for private content.
|
int |
hashCode() |
Boolean |
isEnabled()
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamingDistributionConfig |
withAliases(Aliases aliases)
A complex type that contains information about CNAMEs (alternate
domain names), if any, for this streaming distribution.
|
StreamingDistributionConfig |
withCallerReference(String callerReference)
A unique number that ensures the request can't be replayed.
|
StreamingDistributionConfig |
withComment(String comment)
Any comments you want to include about the streaming distribution.
|
StreamingDistributionConfig |
withEnabled(Boolean enabled)
Whether the streaming distribution is enabled to accept end user
requests for content.
|
StreamingDistributionConfig |
withLogging(StreamingLoggingConfig logging)
A complex type that controls whether access logs are written for the
streaming distribution.
|
StreamingDistributionConfig |
withPriceClass(PriceClass priceClass)
A complex type that contains information about price class for this
streaming distribution.
|
StreamingDistributionConfig |
withPriceClass(String priceClass)
A complex type that contains information about price class for this
streaming distribution.
|
StreamingDistributionConfig |
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.
|
StreamingDistributionConfig |
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.
|
public StreamingDistributionConfig()
public StreamingDistributionConfig(String callerReference, S3Origin s3Origin, Boolean enabled)
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.public String getCallerReference()
public void setCallerReference(String callerReference)
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.public StreamingDistributionConfig withCallerReference(String callerReference)
Returns a reference to this object so that method calls can be chained together.
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.public S3Origin getS3Origin()
public void setS3Origin(S3Origin 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.public StreamingDistributionConfig withS3Origin(S3Origin s3Origin)
Returns a reference to this object so that method calls can be chained together.
s3Origin
- A complex type that contains information about the Amazon S3 bucket
from which you want CloudFront to get your media files for
distribution.public Aliases getAliases()
public void setAliases(Aliases aliases)
aliases
- A complex type that contains information about CNAMEs (alternate
domain names), if any, for this streaming distribution.public StreamingDistributionConfig withAliases(Aliases aliases)
Returns a reference to this object so that method calls can be chained together.
aliases
- A complex type that contains information about CNAMEs (alternate
domain names), if any, for this streaming distribution.public String getComment()
public void setComment(String comment)
comment
- Any comments you want to include about the streaming distribution.public StreamingDistributionConfig withComment(String comment)
Returns a reference to this object so that method calls can be chained together.
comment
- Any comments you want to include about the streaming distribution.public StreamingLoggingConfig getLogging()
public void setLogging(StreamingLoggingConfig logging)
logging
- A complex type that controls whether access logs are written for the
streaming distribution.public StreamingDistributionConfig withLogging(StreamingLoggingConfig logging)
Returns a reference to this object so that method calls can be chained together.
logging
- A complex type that controls whether access logs are written for the
streaming distribution.public TrustedSigners getTrustedSigners()
public void setTrustedSigners(TrustedSigners trustedSigners)
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.public StreamingDistributionConfig withTrustedSigners(TrustedSigners trustedSigners)
Returns a reference to this object so that method calls can be chained together.
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.public String getPriceClass()
Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
PriceClass
public void setPriceClass(String priceClass)
Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass
- A complex type that contains information about price class for this
streaming distribution.PriceClass
public StreamingDistributionConfig withPriceClass(String priceClass)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass
- A complex type that contains information about price class for this
streaming distribution.PriceClass
public void setPriceClass(PriceClass priceClass)
Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass
- A complex type that contains information about price class for this
streaming distribution.PriceClass
public StreamingDistributionConfig withPriceClass(PriceClass priceClass)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PriceClass_100, PriceClass_200, PriceClass_All
priceClass
- A complex type that contains information about price class for this
streaming distribution.PriceClass
public Boolean isEnabled()
public void setEnabled(Boolean enabled)
enabled
- Whether the streaming distribution is enabled to accept end user
requests for content.public StreamingDistributionConfig withEnabled(Boolean enabled)
Returns a reference to this object so that method calls can be chained together.
enabled
- Whether the streaming distribution is enabled to accept end user
requests for content.public Boolean getEnabled()
public String toString()
toString
in class Object
Object.toString()
public StreamingDistributionConfig clone()
Copyright © 2015. All rights reserved.