Interface UpdateAccountSettingsResponse.Builder

  • Method Details

    • deletionProtection

      UpdateAccountSettingsResponse.Builder deletionProtection(DeletionProtectionSettings deletionProtection)

      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. Deletion protection is disabled by default. The default interval for ProtectionPeriodInMinutes is 60.

      Parameters:
      deletionProtection - 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. Deletion protection is disabled by default. The default interval for ProtectionPeriodInMinutes is 60.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • deletionProtection

      default UpdateAccountSettingsResponse.Builder deletionProtection(Consumer<DeletionProtectionSettings.Builder> deletionProtection)

      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. Deletion protection is disabled by default. The default interval for ProtectionPeriodInMinutes is 60.

      This is a convenience method that creates an instance of the DeletionProtectionSettings.Builder avoiding the need to create one manually via DeletionProtectionSettings.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deletionProtection(DeletionProtectionSettings).

      Parameters:
      deletionProtection - a consumer that will call methods on DeletionProtectionSettings.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: