@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, 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.
|
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.
|
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.
|
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.RegionName
public String getRegionName()
The AWS Region name of the origin resource.
RegionName
public InputOrigin withRegionName(String regionName)
The AWS Region name of the origin resource.
regionName
- The AWS Region name of the origin resource.RegionName
public InputOrigin 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 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.OriginProtocolPolicyEnum
public 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.OriginProtocolPolicyEnum
public String toString()
toString
in class Object
Object.toString()
public InputOrigin clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.