@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsCloudFrontDistributionDefaultCacheBehavior extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the default cache configuration for the CloudFront distribution.
Constructor and Description |
---|
AwsCloudFrontDistributionDefaultCacheBehavior() |
Modifier and Type | Method and Description |
---|---|
AwsCloudFrontDistributionDefaultCacheBehavior |
clone() |
boolean |
equals(Object obj) |
String |
getViewerProtocolPolicy()
The protocol that viewers can use to access the files in an origin.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setViewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin.
|
String |
toString()
Returns a string representation of this object.
|
AwsCloudFrontDistributionDefaultCacheBehavior |
withViewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin.
|
public AwsCloudFrontDistributionDefaultCacheBehavior()
public void setViewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin. You can specify the following options:
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved
Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
viewerProtocolPolicy
- The protocol that viewers can use to access the files in an origin. You can specify the following
options:
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301
(Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
public String getViewerProtocolPolicy()
The protocol that viewers can use to access the files in an origin. You can specify the following options:
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved
Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301
(Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403
(Forbidden).
public AwsCloudFrontDistributionDefaultCacheBehavior withViewerProtocolPolicy(String viewerProtocolPolicy)
The protocol that viewers can use to access the files in an origin. You can specify the following options:
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved
Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
viewerProtocolPolicy
- The protocol that viewers can use to access the files in an origin. You can specify the following
options:
allow-all
- Viewers can use HTTP or HTTPS.
redirect-to-https
- CloudFront responds to HTTP requests with an HTTP status code of 301
(Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only
- CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
public String toString()
toString
in class Object
Object.toString()
public AwsCloudFrontDistributionDefaultCacheBehavior clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.