@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InputOrigin extends Object implements Serializable, Cloneable, StructuredPojo
Describes the origin resource of an Amazon Lightsail content delivery network (CDN) distribution.
An origin can be a Lightsail instance, bucket, container service, or load balancer. A distribution pulls content from an origin, caches it, and serves it to viewers via a worldwide network of edge servers.
| Constructor and Description |
|---|
InputOrigin() |
| Modifier and Type | Method and Description |
|---|---|
InputOrigin |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the origin resource.
|
String |
getProtocolPolicy()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
String |
getRegionName()
The AWS Region name of the origin resource.
|
Integer |
getResponseTimeout()
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the
origin.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name of the origin resource.
|
void |
setProtocolPolicy(String protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
void |
setRegionName(String regionName)
The AWS Region name of the origin resource.
|
void |
setResponseTimeout(Integer responseTimeout)
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the
origin.
|
String |
toString()
Returns a string representation of this object.
|
InputOrigin |
withName(String name)
The name of the origin resource.
|
InputOrigin |
withProtocolPolicy(OriginProtocolPolicyEnum protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
InputOrigin |
withProtocolPolicy(String protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
InputOrigin |
withRegionName(RegionName regionName)
The AWS Region name of the origin resource.
|
InputOrigin |
withRegionName(String regionName)
The AWS Region name of the origin resource.
|
InputOrigin |
withResponseTimeout(Integer responseTimeout)
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the
origin.
|
public void setName(String name)
The name of the origin resource.
name - The name of the origin resource.public String getName()
The name of the origin resource.
public InputOrigin withName(String name)
The name of the origin resource.
name - The name of the origin resource.public void setRegionName(String regionName)
The AWS Region name of the origin resource.
regionName - The AWS Region name of the origin resource.RegionNamepublic String getRegionName()
The AWS Region name of the origin resource.
RegionNamepublic InputOrigin withRegionName(String regionName)
The AWS Region name of the origin resource.
regionName - The AWS Region name of the origin resource.RegionNamepublic InputOrigin withRegionName(RegionName regionName)
The AWS Region name of the origin resource.
regionName - The AWS Region name of the origin resource.RegionNamepublic void setProtocolPolicy(String protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
protocolPolicy - The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin
to pull content.OriginProtocolPolicyEnumpublic String getProtocolPolicy()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
OriginProtocolPolicyEnumpublic InputOrigin withProtocolPolicy(String protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
protocolPolicy - The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin
to pull content.OriginProtocolPolicyEnumpublic InputOrigin withProtocolPolicy(OriginProtocolPolicyEnum protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
protocolPolicy - The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin
to pull content.OriginProtocolPolicyEnumpublic void setResponseTimeout(Integer responseTimeout)
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
responseTimeout - The amount of time, in seconds, that the distribution waits for a response after forwarding a request to
the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't
specify otherwise) is 30 seconds.public Integer getResponseTimeout()
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
public InputOrigin withResponseTimeout(Integer responseTimeout)
The amount of time, in seconds, that the distribution waits for a response after forwarding a request to the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 30 seconds.
responseTimeout - The amount of time, in seconds, that the distribution waits for a response after forwarding a request to
the origin. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if you don't
specify otherwise) is 30 seconds.public String toString()
toString in class ObjectObject.toString()public InputOrigin clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.