@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClientPolicyTls extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a Transport Layer Security (TLS) client policy.
Constructor and Description |
---|
ClientPolicyTls() |
Modifier and Type | Method and Description |
---|---|
ClientPolicyTls |
clone() |
boolean |
equals(Object obj) |
Boolean |
getEnforce()
Whether the policy is enforced.
|
List<Integer> |
getPorts()
The range of ports that the policy is enforced for.
|
TlsValidationContext |
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)
The range of ports that the policy is enforced for.
|
void |
setValidation(TlsValidationContext validation)
A reference to an object that represents a TLS validation context.
|
String |
toString()
Returns a string representation of this object.
|
ClientPolicyTls |
withEnforce(Boolean enforce)
Whether the policy is enforced.
|
ClientPolicyTls |
withPorts(Collection<Integer> ports)
The range of ports that the policy is enforced for.
|
ClientPolicyTls |
withPorts(Integer... ports)
The range of ports that the policy is enforced for.
|
ClientPolicyTls |
withValidation(TlsValidationContext 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 ClientPolicyTls 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()
The range of ports that the policy is enforced for.
public void setPorts(Collection<Integer> ports)
The range of ports that the policy is enforced for.
ports
- The range of ports that the policy is enforced for.public ClientPolicyTls withPorts(Integer... ports)
The range of 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
- The range of ports that the policy is enforced for.public ClientPolicyTls withPorts(Collection<Integer> ports)
The range of ports that the policy is enforced for.
ports
- The range of ports that the policy is enforced for.public void setValidation(TlsValidationContext 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 TlsValidationContext getValidation()
A reference to an object that represents a TLS validation context.
public ClientPolicyTls withValidation(TlsValidationContext 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 ClientPolicyTls clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.