Class DeletionProtectionSettings
- java.lang.Object
-
- software.amazon.awssdk.services.appconfig.model.DeletionProtectionSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DeletionProtectionSettings.Builder,DeletionProtectionSettings>
@Generated("software.amazon.awssdk:codegen") public final class DeletionProtectionSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeletionProtectionSettings.Builder,DeletionProtectionSettings>
A parameter to configure deletion protection. If enabled, deletion protection prevents a user from deleting a configuration profile or an environment if AppConfig has called either GetLatestConfiguration or for the configuration profile or from the environment during the specified interval.
This setting uses the following default values:
-
Deletion protection is disabled by default.
-
The default interval specified by
ProtectionPeriodInMinutesis 60. -
DeletionProtectionCheckskips configuration profiles and environments that were created in the past hour.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDeletionProtectionSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeletionProtectionSettings.Builderbuilder()Booleanenabled()A parameter that indicates if deletion protection is enabled or not.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerprotectionPeriodInMinutes()The time interval during which AppConfig monitors for calls to GetLatestConfiguration or for a configuration profile or from an environment.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DeletionProtectionSettings.Builder>serializableBuilderClass()DeletionProtectionSettings.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
-
enabled
public final Boolean enabled()
A parameter that indicates if deletion protection is enabled or not.
- Returns:
- A parameter that indicates if deletion protection is enabled or not.
-
protectionPeriodInMinutes
public final Integer protectionPeriodInMinutes()
The time interval during which AppConfig monitors for calls to GetLatestConfiguration or for a configuration profile or from an environment. AppConfig returns an error if a user calls or for the designated configuration profile or environment. To bypass the error and delete a configuration profile or an environment, specify
BYPASSfor theDeletionProtectionCheckparameter for either or .- Returns:
- The time interval during which AppConfig monitors for calls to GetLatestConfiguration or for a configuration profile or from an environment. AppConfig returns an
error if a user calls or for the designated configuration profile or environment. To bypass the error and
delete a configuration profile or an environment, specify
BYPASSfor theDeletionProtectionCheckparameter for either or .
-
toBuilder
public DeletionProtectionSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DeletionProtectionSettings.Builder,DeletionProtectionSettings>
-
builder
public static DeletionProtectionSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends DeletionProtectionSettings.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-