@Generated(value="software.amazon.awssdk:codegen") public final class KeyUsageProperty extends Object implements SdkPojo, Serializable, ToCopyableBuilder<KeyUsageProperty.Builder,KeyUsageProperty>
The key usage property defines the purpose of the private key contained in the certificate. You can specify specific purposes using property flags or all by using property type ALL.
| Modifier and Type | Class and Description |
|---|---|
static interface |
KeyUsageProperty.Builder |
static class |
KeyUsageProperty.Type |
| Modifier and Type | Method and Description |
|---|---|
static KeyUsageProperty.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
static KeyUsageProperty |
fromPropertyFlags(Consumer<KeyUsagePropertyFlags.Builder> propertyFlags)
Create an instance of this class with
propertyFlags() initialized to the given value. |
static KeyUsageProperty |
fromPropertyFlags(KeyUsagePropertyFlags propertyFlags)
Create an instance of this class with
propertyFlags() initialized to the given value. |
static KeyUsageProperty |
fromPropertyType(KeyUsagePropertyType propertyType)
Create an instance of this class with
propertyTypeAsString() initialized to the given value. |
static KeyUsageProperty |
fromPropertyType(String propertyType)
Create an instance of this class with
propertyTypeAsString() initialized to the given value. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
KeyUsagePropertyFlags |
propertyFlags()
You can specify key usage for encryption, key agreement, and signature.
|
KeyUsagePropertyType |
propertyType()
You can specify all key usages using property type ALL.
|
String |
propertyTypeAsString()
You can specify all key usages using property type ALL.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends KeyUsageProperty.Builder> |
serializableBuilderClass() |
KeyUsageProperty.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
KeyUsageProperty.Type |
type()
Retrieve an enum value representing which member of this object is populated.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final KeyUsagePropertyFlags propertyFlags()
You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
public final KeyUsagePropertyType propertyType()
You can specify all key usages using property type ALL. You can use property type or property flags but not both.
If the service returns an enum value that is not available in the current SDK version, propertyType will
return KeyUsagePropertyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from propertyTypeAsString().
KeyUsagePropertyTypepublic final String propertyTypeAsString()
You can specify all key usages using property type ALL. You can use property type or property flags but not both.
If the service returns an enum value that is not available in the current SDK version, propertyType will
return KeyUsagePropertyType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from propertyTypeAsString().
KeyUsagePropertyTypepublic KeyUsageProperty.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<KeyUsageProperty.Builder,KeyUsageProperty>public static KeyUsageProperty.Builder builder()
public static Class<? extends KeyUsageProperty.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public static KeyUsageProperty fromPropertyFlags(KeyUsagePropertyFlags propertyFlags)
propertyFlags() initialized to the given value.
You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
propertyFlags - You can specify key usage for encryption, key agreement, and signature. You can use property flags or
property type but not both.public static KeyUsageProperty fromPropertyFlags(Consumer<KeyUsagePropertyFlags.Builder> propertyFlags)
propertyFlags() initialized to the given value.
You can specify key usage for encryption, key agreement, and signature. You can use property flags or property type but not both.
propertyFlags - You can specify key usage for encryption, key agreement, and signature. You can use property flags or
property type but not both.public static KeyUsageProperty fromPropertyType(String propertyType)
propertyTypeAsString() initialized to the given value.
You can specify all key usages using property type ALL. You can use property type or property flags but not both.
propertyType - You can specify all key usages using property type ALL. You can use property type or property flags but
not both.KeyUsagePropertyTypepublic static KeyUsageProperty fromPropertyType(KeyUsagePropertyType propertyType)
propertyTypeAsString() initialized to the given value.
You can specify all key usages using property type ALL. You can use property type or property flags but not both.
propertyType - You can specify all key usages using property type ALL. You can use property type or property flags but
not both.KeyUsagePropertyTypepublic KeyUsageProperty.Type type()
KeyUsageProperty.Type.UNKNOWN_TO_SDK_VERSION if 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 be KeyUsageProperty.Type.UNKNOWN_TO_SDK_VERSION if zero
members are set, and null if more than one member is set.Copyright © 2023. All rights reserved.