Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront_2012_03_15.model
Class CustomOrigin

java.lang.Object
  extended by com.amazonaws.services.cloudfront_2012_03_15.model.CustomOrigin

public class CustomOrigin
extends java.lang.Object

A customer origin.


Constructor Summary
CustomOrigin()
          Default constructor for a new CustomOrigin object.
CustomOrigin(java.lang.String dNSName, OriginProtocolPolicy originProtocolPolicy)
          Constructs a new CustomOrigin object.
CustomOrigin(java.lang.String dNSName, java.lang.String originProtocolPolicy)
          Constructs a new CustomOrigin object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDNSName()
          The origin to associate with the distribution.
 java.lang.Integer getHTTPPort()
          The HTTP port the custom origin listens on.
 java.lang.Integer getHTTPSPort()
          The HTTPS port the custom origin listens on.
 java.lang.String getOriginProtocolPolicy()
          The origin protocol policy to apply to your origin.
 int hashCode()
           
 void setDNSName(java.lang.String dNSName)
          The origin to associate with the distribution.
 void setHTTPPort(java.lang.Integer hTTPPort)
          The HTTP port the custom origin listens on.
 void setHTTPSPort(java.lang.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(java.lang.String originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CustomOrigin withDNSName(java.lang.String dNSName)
          The origin to associate with the distribution.
 CustomOrigin withHTTPPort(java.lang.Integer hTTPPort)
          The HTTP port the custom origin listens on.
 CustomOrigin withHTTPSPort(java.lang.Integer hTTPSPort)
          The HTTPS port the custom origin listens on.
 CustomOrigin withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
          The origin protocol policy to apply to your origin.
 CustomOrigin withOriginProtocolPolicy(java.lang.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

CustomOrigin

public CustomOrigin()
Default constructor for a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CustomOrigin

public CustomOrigin(java.lang.String dNSName,
                    java.lang.String originProtocolPolicy)
Constructs a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dNSName - The origin to associate with the distribution.
originProtocolPolicy - The origin protocol policy to apply to your origin.

CustomOrigin

public CustomOrigin(java.lang.String dNSName,
                    OriginProtocolPolicy originProtocolPolicy)
Constructs a new CustomOrigin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dNSName - The origin to associate with the distribution.
originProtocolPolicy - The origin protocol policy to apply to your origin.
Method Detail

getDNSName

public java.lang.String getDNSName()
The origin to associate with the distribution.

Returns:
The origin to associate with the distribution.

setDNSName

public void setDNSName(java.lang.String dNSName)
The origin to associate with the distribution.

Parameters:
dNSName - The origin to associate with the distribution.

withDNSName

public CustomOrigin withDNSName(java.lang.String dNSName)
The origin to associate with the distribution.

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

Parameters:
dNSName - The origin to associate with the distribution.
Returns:
A reference to this updated object so that method calls can be chained together.

getHTTPPort

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

Returns:
The HTTP port the custom origin listens on.

setHTTPPort

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

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

withHTTPPort

public CustomOrigin withHTTPPort(java.lang.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 java.lang.Integer getHTTPSPort()
The HTTPS port the custom origin listens on.

Returns:
The HTTPS port the custom origin listens on.

setHTTPSPort

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

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

withHTTPSPort

public CustomOrigin withHTTPSPort(java.lang.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 java.lang.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(java.lang.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 CustomOrigin withOriginProtocolPolicy(java.lang.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 CustomOrigin 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 java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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