public class StreamingDistributionConfig extends Object
The configuration for the streaming distribution.
Constructor and Description |
---|
StreamingDistributionConfig()
Default constructor for a new StreamingDistributionConfig object.
|
StreamingDistributionConfig(S3Origin s3Origin,
String callerReference,
Boolean enabled)
Constructs a new StreamingDistributionConfig object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCallerReference()
A unique number that ensures the request can't be replayed.
|
List<String> |
getCNAME()
A CNAME alias you want to associate with this streaming distribution.
|
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.
|
LoggingConfig |
getLogging()
A complex type that controls whether access logs are written for the
streaming distribution.
|
S3Origin |
getS3Origin()
S3 Origin information to associate with the distribution.
|
TrustedSigners |
getTrustedSigners()
A complex type that specifies any AWS accounts you want to permit 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 |
setCallerReference(String callerReference)
A unique number that ensures the request can't be replayed.
|
void |
setCNAME(Collection<String> cNAME)
A CNAME alias you want to associate with this streaming distribution.
|
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(LoggingConfig logging)
A complex type that controls whether access logs are written for the
streaming distribution.
|
void |
setS3Origin(S3Origin s3Origin)
S3 Origin information to associate with the distribution.
|
void |
setTrustedSigners(TrustedSigners trustedSigners)
A complex type that specifies any AWS accounts you want to permit to
create signed URLs for private content.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamingDistributionConfig |
withCallerReference(String callerReference)
A unique number that ensures the request can't be replayed.
|
StreamingDistributionConfig |
withCNAME(Collection<String> cNAME)
A CNAME alias you want to associate with this streaming distribution.
|
StreamingDistributionConfig |
withCNAME(String... cNAME)
A CNAME alias you want to associate with this streaming distribution.
|
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(LoggingConfig logging)
A complex type that controls whether access logs are written for the
streaming distribution.
|
StreamingDistributionConfig |
withS3Origin(S3Origin s3Origin)
S3 Origin information to associate with the distribution.
|
StreamingDistributionConfig |
withTrustedSigners(TrustedSigners trustedSigners)
A complex type that specifies any AWS accounts you want to permit to
create signed URLs for private content.
|
public StreamingDistributionConfig()
public StreamingDistributionConfig(S3Origin s3Origin, String callerReference, Boolean enabled)
s3Origin
- S3 Origin information to associate with the
distribution.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.enabled
- Whether the streaming distribution is enabled to accept
end user requests for content.public S3Origin getS3Origin()
public void setS3Origin(S3Origin s3Origin)
s3Origin
- S3 Origin information to associate with the distribution.public StreamingDistributionConfig withS3Origin(S3Origin s3Origin)
Returns a reference to this object so that method calls can be chained together.
s3Origin
- S3 Origin information to associate with the distribution.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 List<String> getCNAME()
public void setCNAME(Collection<String> cNAME)
cNAME
- A CNAME alias you want to associate with this streaming distribution.
You can have up to 10 CNAME aliases per streaming distribution. Only
include a CNAME element if you have a CNAME to associate with the
distribution. Don't include an empty CNAME element in the
StreamingDistributionConfig object. If you do, CloudFront returns a
MalformedXML error.public StreamingDistributionConfig withCNAME(String... cNAME)
Returns a reference to this object so that method calls can be chained together.
cNAME
- A CNAME alias you want to associate with this streaming distribution.
You can have up to 10 CNAME aliases per streaming distribution. Only
include a CNAME element if you have a CNAME to associate with the
distribution. Don't include an empty CNAME element in the
StreamingDistributionConfig object. If you do, CloudFront returns a
MalformedXML error.public StreamingDistributionConfig withCNAME(Collection<String> cNAME)
Returns a reference to this object so that method calls can be chained together.
cNAME
- A CNAME alias you want to associate with this streaming distribution.
You can have up to 10 CNAME aliases per streaming distribution. Only
include a CNAME element if you have a CNAME to associate with the
distribution. Don't include an empty CNAME element in the
StreamingDistributionConfig object. If you do, CloudFront returns a
MalformedXML error.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 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 LoggingConfig getLogging()
public void setLogging(LoggingConfig logging)
logging
- A complex type that controls whether access logs are written for the
streaming distribution. If you want to turn on access logs, include
this element; if you want to turn off access logs, remove this
element.public StreamingDistributionConfig withLogging(LoggingConfig 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. If you want to turn on access logs, include
this element; if you want to turn off access logs, remove this
element.public TrustedSigners getTrustedSigners()
public void setTrustedSigners(TrustedSigners trustedSigners)
trustedSigners
- A complex type that specifies any AWS accounts you want to permit to
create signed URLs for private content. If you want the distribution
to use signed URLs, include this element; if you want the distribution
to use basic URLs, remove this element.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 any AWS accounts you want to permit to
create signed URLs for private content. If you want the distribution
to use signed URLs, include this element; if you want the distribution
to use basic URLs, remove this element.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.