@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VirtualGatewayClientPolicyTls extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a Transport Layer Security (TLS) client policy.
| Constructor and Description |
|---|
VirtualGatewayClientPolicyTls() |
| Modifier and Type | Method and Description |
|---|---|
VirtualGatewayClientPolicyTls |
clone() |
boolean |
equals(Object obj) |
VirtualGatewayClientTlsCertificate |
getCertificate()
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
|
Boolean |
getEnforce()
Whether the policy is enforced.
|
List<Integer> |
getPorts()
One or more ports that the policy is enforced for.
|
VirtualGatewayTlsValidationContext |
getValidation()
A reference to an object that represents a Transport Layer Security (TLS) validation context.
|
int |
hashCode() |
Boolean |
isEnforce()
Whether the policy is enforced.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCertificate(VirtualGatewayClientTlsCertificate certificate)
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
|
void |
setEnforce(Boolean enforce)
Whether the policy is enforced.
|
void |
setPorts(Collection<Integer> ports)
One or more ports that the policy is enforced for.
|
void |
setValidation(VirtualGatewayTlsValidationContext validation)
A reference to an object that represents a Transport Layer Security (TLS) validation context.
|
String |
toString()
Returns a string representation of this object.
|
VirtualGatewayClientPolicyTls |
withCertificate(VirtualGatewayClientTlsCertificate certificate)
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
|
VirtualGatewayClientPolicyTls |
withEnforce(Boolean enforce)
Whether the policy is enforced.
|
VirtualGatewayClientPolicyTls |
withPorts(Collection<Integer> ports)
One or more ports that the policy is enforced for.
|
VirtualGatewayClientPolicyTls |
withPorts(Integer... ports)
One or more ports that the policy is enforced for.
|
VirtualGatewayClientPolicyTls |
withValidation(VirtualGatewayTlsValidationContext validation)
A reference to an object that represents a Transport Layer Security (TLS) validation context.
|
public void setCertificate(VirtualGatewayClientTlsCertificate certificate)
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
certificate - A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS)
certificate.public VirtualGatewayClientTlsCertificate getCertificate()
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
public VirtualGatewayClientPolicyTls withCertificate(VirtualGatewayClientTlsCertificate certificate)
A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS) certificate.
certificate - A reference to an object that represents a virtual gateway's client's Transport Layer Security (TLS)
certificate.public void setEnforce(Boolean enforce)
Whether the policy is enforced. The default is True, if a value isn't specified.
enforce - Whether the policy is enforced. The default is True, if a value isn't specified.public Boolean getEnforce()
Whether the policy is enforced. The default is True, if a value isn't specified.
True, if a value isn't specified.public VirtualGatewayClientPolicyTls withEnforce(Boolean enforce)
Whether the policy is enforced. The default is True, if a value isn't specified.
enforce - Whether the policy is enforced. The default is True, if a value isn't specified.public Boolean isEnforce()
Whether the policy is enforced. The default is True, if a value isn't specified.
True, if a value isn't specified.public List<Integer> getPorts()
One or more ports that the policy is enforced for.
public void setPorts(Collection<Integer> ports)
One or more ports that the policy is enforced for.
ports - One or more ports that the policy is enforced for.public VirtualGatewayClientPolicyTls withPorts(Integer... ports)
One or more ports that the policy is enforced for.
NOTE: This method appends the values to the existing list (if any). Use
setPorts(java.util.Collection) or withPorts(java.util.Collection) if you want to override the
existing values.
ports - One or more ports that the policy is enforced for.public VirtualGatewayClientPolicyTls withPorts(Collection<Integer> ports)
One or more ports that the policy is enforced for.
ports - One or more ports that the policy is enforced for.public void setValidation(VirtualGatewayTlsValidationContext validation)
A reference to an object that represents a Transport Layer Security (TLS) validation context.
validation - A reference to an object that represents a Transport Layer Security (TLS) validation context.public VirtualGatewayTlsValidationContext getValidation()
A reference to an object that represents a Transport Layer Security (TLS) validation context.
public VirtualGatewayClientPolicyTls withValidation(VirtualGatewayTlsValidationContext validation)
A reference to an object that represents a Transport Layer Security (TLS) validation context.
validation - A reference to an object that represents a Transport Layer Security (TLS) validation context.public String toString()
toString in class ObjectObject.toString()public VirtualGatewayClientPolicyTls clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.