@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateDistributionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateDistributionRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateDistributionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<CacheBehaviorPerPath> |
getCacheBehaviors()
An array of objects that describe the per-path cache behavior for the distribution.
|
CacheSettings |
getCacheBehaviorSettings()
An object that describes the cache behavior settings for the distribution.
|
CacheBehavior |
getDefaultCacheBehavior()
An object that describes the default cache behavior for the distribution.
|
String |
getDistributionName()
The name of the distribution to update.
|
Boolean |
getIsEnabled()
Indicates whether to enable the distribution.
|
InputOrigin |
getOrigin()
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
|
int |
hashCode() |
Boolean |
isEnabled()
Indicates whether to enable the distribution.
|
void |
setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
void |
setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
|
void |
setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
|
void |
setDistributionName(String distributionName)
The name of the distribution to update.
|
void |
setIsEnabled(Boolean isEnabled)
Indicates whether to enable the distribution.
|
void |
setOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
|
String |
toString()
Returns a string representation of this object.
|
UpdateDistributionRequest |
withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
UpdateDistributionRequest |
withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
|
UpdateDistributionRequest |
withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
|
UpdateDistributionRequest |
withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
|
UpdateDistributionRequest |
withDistributionName(String distributionName)
The name of the distribution to update.
|
UpdateDistributionRequest |
withIsEnabled(Boolean isEnabled)
Indicates whether to enable the distribution.
|
UpdateDistributionRequest |
withOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDistributionName(String distributionName)
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
distributionName
- The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
public String getDistributionName()
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
Use the GetDistributions
action to get a list of distribution names that you can specify.
public UpdateDistributionRequest withDistributionName(String distributionName)
The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
distributionName
- The name of the distribution to update.
Use the GetDistributions
action to get a list of distribution names that you can specify.
public void setOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
origin
- An object that describes the origin resource for the distribution, such as a Lightsail instance or load
balancer.
The distribution pulls, caches, and serves content from the origin.
public InputOrigin getOrigin()
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
The distribution pulls, caches, and serves content from the origin.
public UpdateDistributionRequest withOrigin(InputOrigin origin)
An object that describes the origin resource for the distribution, such as a Lightsail instance or load balancer.
The distribution pulls, caches, and serves content from the origin.
origin
- An object that describes the origin resource for the distribution, such as a Lightsail instance or load
balancer.
The distribution pulls, caches, and serves content from the origin.
public void setDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior for the distribution.public CacheBehavior getDefaultCacheBehavior()
An object that describes the default cache behavior for the distribution.
public UpdateDistributionRequest withDefaultCacheBehavior(CacheBehavior defaultCacheBehavior)
An object that describes the default cache behavior for the distribution.
defaultCacheBehavior
- An object that describes the default cache behavior for the distribution.public void setCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will replace your
distribution's existing settings.
cacheBehaviorSettings
- An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will
replace your distribution's existing settings.
public CacheSettings getCacheBehaviorSettings()
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will replace your
distribution's existing settings.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will
replace your distribution's existing settings.
public UpdateDistributionRequest withCacheBehaviorSettings(CacheSettings cacheBehaviorSettings)
An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will replace your
distribution's existing settings.
cacheBehaviorSettings
- An object that describes the cache behavior settings for the distribution.
The cacheBehaviorSettings
specified in your UpdateDistributionRequest
will
replace your distribution's existing settings.
public List<CacheBehaviorPerPath> getCacheBehaviors()
An array of objects that describe the per-path cache behavior for the distribution.
public void setCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public UpdateDistributionRequest withCacheBehaviors(CacheBehaviorPerPath... cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
NOTE: This method appends the values to the existing list (if any). Use
setCacheBehaviors(java.util.Collection)
or withCacheBehaviors(java.util.Collection)
if you want
to override the existing values.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public UpdateDistributionRequest withCacheBehaviors(Collection<CacheBehaviorPerPath> cacheBehaviors)
An array of objects that describe the per-path cache behavior for the distribution.
cacheBehaviors
- An array of objects that describe the per-path cache behavior for the distribution.public void setIsEnabled(Boolean isEnabled)
Indicates whether to enable the distribution.
isEnabled
- Indicates whether to enable the distribution.public Boolean getIsEnabled()
Indicates whether to enable the distribution.
public UpdateDistributionRequest withIsEnabled(Boolean isEnabled)
Indicates whether to enable the distribution.
isEnabled
- Indicates whether to enable the distribution.public Boolean isEnabled()
Indicates whether to enable the distribution.
public String toString()
toString
in class Object
Object.toString()
public UpdateDistributionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()