Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class CustomOriginConfig

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.CustomOriginConfig

public class CustomOriginConfig
extends Object

A customer origin.


Constructor Summary
CustomOriginConfig()
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getHTTPPort()
          The HTTP port the custom origin listens on.
 Integer getHTTPSPort()
          The HTTPS port the custom origin listens on.
 String getOriginProtocolPolicy()
          The origin protocol policy to apply to your origin.
 int hashCode()
           
 void setHTTPPort(Integer hTTPPort)
          The HTTP port the custom origin listens on.
 void setHTTPSPort(Integer hTTPSPort)
          The HTTPS port the custom origin listens on.
 void setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 void setOriginProtocolPolicy(String originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CustomOriginConfig withHTTPPort(Integer hTTPPort)
          The HTTP port the custom origin listens on.
 CustomOriginConfig withHTTPSPort(Integer hTTPSPort)
          The HTTPS port the custom origin listens on.
 CustomOriginConfig withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 CustomOriginConfig withOriginProtocolPolicy(String originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CustomOriginConfig

public CustomOriginConfig()
Method Detail

getHTTPPort

public Integer getHTTPPort()
The HTTP port the custom origin listens on.

Returns:
The HTTP port the custom origin listens on.

setHTTPPort

public void setHTTPPort(Integer hTTPPort)
The HTTP port the custom origin listens on.

Parameters:
hTTPPort - The HTTP port the custom origin listens on.

withHTTPPort

public CustomOriginConfig withHTTPPort(Integer hTTPPort)
The HTTP port the custom origin listens on.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hTTPPort - The HTTP port the custom origin listens on.
Returns:
A reference to this updated object so that method calls can be chained together.

getHTTPSPort

public Integer getHTTPSPort()
The HTTPS port the custom origin listens on.

Returns:
The HTTPS port the custom origin listens on.

setHTTPSPort

public void setHTTPSPort(Integer hTTPSPort)
The HTTPS port the custom origin listens on.

Parameters:
hTTPSPort - The HTTPS port the custom origin listens on.

withHTTPSPort

public CustomOriginConfig withHTTPSPort(Integer hTTPSPort)
The HTTPS port the custom origin listens on.

Returns a reference to this object so that method calls can be chained together.

Parameters:
hTTPSPort - The HTTPS port the custom origin listens on.
Returns:
A reference to this updated object so that method calls can be chained together.

getOriginProtocolPolicy

public String getOriginProtocolPolicy()
The origin protocol policy to apply to your origin.

Constraints:
Allowed Values: http-only, match-viewer

Returns:
The origin protocol policy to apply to your origin.
See Also:
OriginProtocolPolicy

setOriginProtocolPolicy

public void setOriginProtocolPolicy(String originProtocolPolicy)
The origin protocol policy to apply to your origin.

Constraints:
Allowed Values: http-only, match-viewer

Parameters:
originProtocolPolicy - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: http-only, match-viewer

Parameters:
originProtocolPolicy - The origin protocol policy to apply to your origin.
Returns:
A reference to this updated 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.

Constraints:
Allowed Values: http-only, match-viewer

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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: http-only, match-viewer

Parameters:
originProtocolPolicy - The origin protocol policy to apply to your origin.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
OriginProtocolPolicy

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.