@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClientPolicyTls extends Object implements Serializable, Cloneable, StructuredPojo
A reference to 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) |
ClientTlsCertificate |
getCertificate()
A reference to an object that represents a client's TLS certificate.
|
Boolean |
getEnforce()
Whether the policy is enforced.
|
List<Integer> |
getPorts()
One or more 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 |
setCertificate(ClientTlsCertificate certificate)
A reference to an object that represents a client's 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(TlsValidationContext validation)
A reference to an object that represents a TLS validation context.
|
String |
toString()
Returns a string representation of this object.
|
ClientPolicyTls |
withCertificate(ClientTlsCertificate certificate)
A reference to an object that represents a client's TLS certificate.
|
ClientPolicyTls |
withEnforce(Boolean enforce)
Whether the policy is enforced.
|
ClientPolicyTls |
withPorts(Collection<Integer> ports)
One or more ports that the policy is enforced for.
|
ClientPolicyTls |
withPorts(Integer... ports)
One or more ports that the policy is enforced for.
|
ClientPolicyTls |
withValidation(TlsValidationContext validation)
A reference to an object that represents a TLS validation context.
|
public void setCertificate(ClientTlsCertificate certificate)
A reference to an object that represents a client's TLS certificate.
certificate - A reference to an object that represents a client's TLS certificate.public ClientTlsCertificate getCertificate()
A reference to an object that represents a client's TLS certificate.
public ClientPolicyTls withCertificate(ClientTlsCertificate certificate)
A reference to an object that represents a client's TLS certificate.
certificate - A reference to an object that represents a client's 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 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()
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 ClientPolicyTls 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 ClientPolicyTls 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(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 ObjectObject.toString()public ClientPolicyTls clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.