Class CustomOriginConfig
- java.lang.Object
-
- com.amazonaws.services.cloudfront.model.CustomOriginConfig
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CustomOriginConfig extends Object implements Serializable, Cloneable
A customer origin.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CustomOriginConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomOriginConfigclone()booleanequals(Object obj)IntegergetHTTPPort()The HTTP port the custom origin listens on.IntegergetHTTPSPort()The HTTPS port the custom origin listens on.StringgetOriginProtocolPolicy()The origin protocol policy to apply to your origin.OriginSslProtocolsgetOriginSslProtocols()The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.inthashCode()voidsetHTTPPort(Integer hTTPPort)The HTTP port the custom origin listens on.voidsetHTTPSPort(Integer hTTPSPort)The HTTPS port the custom origin listens on.voidsetOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)The origin protocol policy to apply to your origin.voidsetOriginProtocolPolicy(String originProtocolPolicy)The origin protocol policy to apply to your origin.voidsetOriginSslProtocols(OriginSslProtocols originSslProtocols)The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.StringtoString()Returns a string representation of this object; useful for testing and debugging.CustomOriginConfigwithHTTPPort(Integer hTTPPort)The HTTP port the custom origin listens on.CustomOriginConfigwithHTTPSPort(Integer hTTPSPort)The HTTPS port the custom origin listens on.CustomOriginConfigwithOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)The origin protocol policy to apply to your origin.CustomOriginConfigwithOriginProtocolPolicy(String originProtocolPolicy)The origin protocol policy to apply to your origin.CustomOriginConfigwithOriginSslProtocols(OriginSslProtocols originSslProtocols)The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
-
-
-
Method Detail
-
setHTTPPort
public void setHTTPPort(Integer hTTPPort)
The HTTP port the custom origin listens on.- Parameters:
hTTPPort- The HTTP port the custom origin listens on.
-
getHTTPPort
public Integer getHTTPPort()
The HTTP port the custom origin listens on.- Returns:
- The HTTP port the custom origin listens on.
-
withHTTPPort
public CustomOriginConfig withHTTPPort(Integer hTTPPort)
The HTTP port the custom origin listens on.- Parameters:
hTTPPort- The HTTP port the custom origin listens on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHTTPSPort
public void setHTTPSPort(Integer hTTPSPort)
The HTTPS port the custom origin listens on.- Parameters:
hTTPSPort- The HTTPS port the custom origin listens on.
-
getHTTPSPort
public Integer getHTTPSPort()
The HTTPS port the custom origin listens on.- Returns:
- The HTTPS port the custom origin listens on.
-
withHTTPSPort
public CustomOriginConfig withHTTPSPort(Integer hTTPSPort)
The HTTPS port the custom origin listens on.- Parameters:
hTTPSPort- The HTTPS port the custom origin listens on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOriginProtocolPolicy
public void setOriginProtocolPolicy(String originProtocolPolicy)
The origin protocol policy to apply to your origin.- Parameters:
originProtocolPolicy- The origin protocol policy to apply to your origin.- See Also:
OriginProtocolPolicy
-
getOriginProtocolPolicy
public String getOriginProtocolPolicy()
The origin protocol policy to apply to your origin.- Returns:
- The origin protocol policy to apply to your origin.
- See Also:
OriginProtocolPolicy
-
withOriginProtocolPolicy
public CustomOriginConfig withOriginProtocolPolicy(String originProtocolPolicy)
The origin protocol policy to apply to your origin.- Parameters:
originProtocolPolicy- The origin protocol policy to apply to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OriginProtocolPolicy
-
setOriginProtocolPolicy
public void setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
The origin protocol policy to apply to your origin.- Parameters:
originProtocolPolicy- The origin protocol policy to apply to your origin.- See Also:
OriginProtocolPolicy
-
withOriginProtocolPolicy
public CustomOriginConfig withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
The origin protocol policy to apply to your origin.- Parameters:
originProtocolPolicy- The origin protocol policy to apply to your origin.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OriginProtocolPolicy
-
setOriginSslProtocols
public void setOriginSslProtocols(OriginSslProtocols originSslProtocols)
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.- Parameters:
originSslProtocols- The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
-
getOriginSslProtocols
public OriginSslProtocols getOriginSslProtocols()
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.- Returns:
- The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.
-
withOriginSslProtocols
public CustomOriginConfig withOriginSslProtocols(OriginSslProtocols originSslProtocols)
The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.- Parameters:
originSslProtocols- The SSL/TLS protocols that you want CloudFront to use when communicating with your origin over HTTPS.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CustomOriginConfig clone()
-
-