Class DescribedSecurityPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.transfer.model.DescribedSecurityPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DescribedSecurityPolicy.Builder,DescribedSecurityPolicy>
@Generated("software.amazon.awssdk:codegen") public final class DescribedSecurityPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DescribedSecurityPolicy.Builder,DescribedSecurityPolicy>
Describes the properties of a security policy that was specified. For more information about security policies, see Working with security policies.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribedSecurityPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DescribedSecurityPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Booleanfips()Specifies whether this policy enables Federal Information Processing Standards (FIPS).<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasSshCiphers()For responses, this returns true if the service returned a value for the SshCiphers property.booleanhasSshKexs()For responses, this returns true if the service returned a value for the SshKexs property.booleanhasSshMacs()For responses, this returns true if the service returned a value for the SshMacs property.booleanhasTlsCiphers()For responses, this returns true if the service returned a value for the TlsCiphers property.List<SdkField<?>>sdkFields()StringsecurityPolicyName()Specifies the name of the security policy that is attached to the server.static Class<? extends DescribedSecurityPolicy.Builder>serializableBuilderClass()List<String>sshCiphers()Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.List<String>sshKexs()Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.List<String>sshMacs()Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.List<String>tlsCiphers()Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.DescribedSecurityPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
fips
public final Boolean fips()
Specifies whether this policy enables Federal Information Processing Standards (FIPS).
- Returns:
- Specifies whether this policy enables Federal Information Processing Standards (FIPS).
-
securityPolicyName
public final String securityPolicyName()
Specifies the name of the security policy that is attached to the server.
- Returns:
- Specifies the name of the security policy that is attached to the server.
-
hasSshCiphers
public final boolean hasSshCiphers()
For responses, this returns true if the service returned a value for the SshCiphers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
sshCiphers
public final List<String> sshCiphers()
Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSshCiphers()method.- Returns:
- Specifies the enabled Secure Shell (SSH) cipher encryption algorithms in the security policy that is attached to the server.
-
hasSshKexs
public final boolean hasSshKexs()
For responses, this returns true if the service returned a value for the SshKexs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
sshKexs
public final List<String> sshKexs()
Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSshKexs()method.- Returns:
- Specifies the enabled SSH key exchange (KEX) encryption algorithms in the security policy that is attached to the server.
-
hasSshMacs
public final boolean hasSshMacs()
For responses, this returns true if the service returned a value for the SshMacs property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
sshMacs
public final List<String> sshMacs()
Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSshMacs()method.- Returns:
- Specifies the enabled SSH message authentication code (MAC) encryption algorithms in the security policy that is attached to the server.
-
hasTlsCiphers
public final boolean hasTlsCiphers()
For responses, this returns true if the service returned a value for the TlsCiphers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
tlsCiphers
public final List<String> tlsCiphers()
Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTlsCiphers()method.- Returns:
- Specifies the enabled Transport Layer Security (TLS) cipher encryption algorithms in the security policy that is attached to the server.
-
toBuilder
public DescribedSecurityPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribedSecurityPolicy.Builder,DescribedSecurityPolicy>
-
builder
public static DescribedSecurityPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribedSecurityPolicy.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-