@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) |
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 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 |
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 TLS validation context.
|
String |
toString()
Returns a string representation of this object.
|
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 TLS validation context.
|
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 TLS validation context.
validation
- A reference to an object that represents a TLS validation context.public VirtualGatewayTlsValidationContext getValidation()
A reference to an object that represents a TLS validation context.
public VirtualGatewayClientPolicyTls withValidation(VirtualGatewayTlsValidationContext validation)
A reference to an object that represents a TLS validation context.
validation
- A reference to an object that represents a TLS validation context.public String toString()
toString
in class Object
Object.toString()
public VirtualGatewayClientPolicyTls clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.