@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Origin 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, 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 |
---|
Origin() |
Modifier and Type | Method and Description |
---|---|
Origin |
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.
|
String |
getResourceType()
The resource type of the origin resource (Instance).
|
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 |
setResourceType(String resourceType)
The resource type of the origin resource (Instance).
|
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.
|
Origin |
withName(String name)
The name of the origin resource.
|
Origin |
withProtocolPolicy(OriginProtocolPolicyEnum protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
Origin |
withProtocolPolicy(String protocolPolicy)
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull
content.
|
Origin |
withRegionName(RegionName regionName)
The AWS Region name of the origin resource.
|
Origin |
withRegionName(String regionName)
The AWS Region name of the origin resource.
|
Origin |
withResourceType(ResourceType resourceType)
The resource type of the origin resource (Instance).
|
Origin |
withResourceType(String resourceType)
The resource type of the origin resource (Instance).
|
Origin |
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 Origin withName(String name)
The name of the origin resource.
name
- The name of the origin resource.public void setResourceType(String resourceType)
The resource type of the origin resource (Instance).
resourceType
- The resource type of the origin resource (Instance).ResourceType
public String getResourceType()
The resource type of the origin resource (Instance).
ResourceType
public Origin withResourceType(String resourceType)
The resource type of the origin resource (Instance).
resourceType
- The resource type of the origin resource (Instance).ResourceType
public Origin withResourceType(ResourceType resourceType)
The resource type of the origin resource (Instance).
resourceType
- The resource type of the origin resource (Instance).ResourceType
public void setRegionName(String regionName)
The AWS Region name of the origin resource.
regionName
- The AWS Region name of the origin resource.RegionName
public String getRegionName()
The AWS Region name of the origin resource.
RegionName
public Origin withRegionName(String regionName)
The AWS Region name of the origin resource.
regionName
- The AWS Region name of the origin resource.RegionName
public Origin withRegionName(RegionName regionName)
The AWS Region name of the origin resource.
regionName
- The AWS Region name of the origin resource.RegionName
public 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.OriginProtocolPolicyEnum
public String getProtocolPolicy()
The protocol that your Amazon Lightsail distribution uses when establishing a connection with your origin to pull content.
OriginProtocolPolicyEnum
public Origin 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.OriginProtocolPolicyEnum
public Origin 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.OriginProtocolPolicyEnum
public 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 Origin 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 Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.