Class ApplicationPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.pcaconnectorad.model.ApplicationPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ApplicationPolicy.Builder,ApplicationPolicy>
@Generated("software.amazon.awssdk:codegen") public final class ApplicationPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ApplicationPolicy.Builder,ApplicationPolicy>
Application policies describe what the certificate can be used for.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceApplicationPolicy.Builderstatic classApplicationPolicy.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static ApplicationPolicyfromPolicyObjectIdentifier(String policyObjectIdentifier)Create an instance of this class withpolicyObjectIdentifier()initialized to the given value.static ApplicationPolicyfromPolicyType(String policyType)Create an instance of this class withpolicyTypeAsString()initialized to the given value.static ApplicationPolicyfromPolicyType(ApplicationPolicyType policyType)Create an instance of this class withpolicyTypeAsString()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringpolicyObjectIdentifier()The object identifier (OID) of an application policy.ApplicationPolicyTypepolicyType()The type of application policyStringpolicyTypeAsString()The type of application policyList<SdkField<?>>sdkFields()static Class<? extends ApplicationPolicy.Builder>serializableBuilderClass()ApplicationPolicy.BuildertoBuilder()StringtoString()Returns a string representation of this object.ApplicationPolicy.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
policyObjectIdentifier
public final String policyObjectIdentifier()
The object identifier (OID) of an application policy.
- Returns:
- The object identifier (OID) of an application policy.
-
policyType
public final ApplicationPolicyType policyType()
The type of application policy
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnApplicationPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of application policy
- See Also:
ApplicationPolicyType
-
policyTypeAsString
public final String policyTypeAsString()
The type of application policy
If the service returns an enum value that is not available in the current SDK version,
policyTypewill returnApplicationPolicyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompolicyTypeAsString().- Returns:
- The type of application policy
- See Also:
ApplicationPolicyType
-
toBuilder
public ApplicationPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ApplicationPolicy.Builder,ApplicationPolicy>
-
builder
public static ApplicationPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ApplicationPolicy.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.
-
fromPolicyObjectIdentifier
public static ApplicationPolicy fromPolicyObjectIdentifier(String policyObjectIdentifier)
Create an instance of this class withpolicyObjectIdentifier()initialized to the given value.The object identifier (OID) of an application policy.
- Parameters:
policyObjectIdentifier- The object identifier (OID) of an application policy.
-
fromPolicyType
public static ApplicationPolicy fromPolicyType(String policyType)
Create an instance of this class withpolicyTypeAsString()initialized to the given value.The type of application policy
- Parameters:
policyType- The type of application policy- See Also:
ApplicationPolicyType
-
fromPolicyType
public static ApplicationPolicy fromPolicyType(ApplicationPolicyType policyType)
Create an instance of this class withpolicyTypeAsString()initialized to the given value.The type of application policy
- Parameters:
policyType- The type of application policy- See Also:
ApplicationPolicyType
-
type
public ApplicationPolicy.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beApplicationPolicy.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beApplicationPolicy.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-