/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Defines the rotation schedule for the secret.

See Also:

AWS * API Reference

*/ class AwsSecretsManagerSecretRotationRules { public: AWS_SECURITYHUB_API AwsSecretsManagerSecretRotationRules(); AWS_SECURITYHUB_API AwsSecretsManagerSecretRotationRules(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsSecretsManagerSecretRotationRules& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The number of days after the previous rotation to rotate the secret.

*/ inline int GetAutomaticallyAfterDays() const{ return m_automaticallyAfterDays; } /** *

The number of days after the previous rotation to rotate the secret.

*/ inline bool AutomaticallyAfterDaysHasBeenSet() const { return m_automaticallyAfterDaysHasBeenSet; } /** *

The number of days after the previous rotation to rotate the secret.

*/ inline void SetAutomaticallyAfterDays(int value) { m_automaticallyAfterDaysHasBeenSet = true; m_automaticallyAfterDays = value; } /** *

The number of days after the previous rotation to rotate the secret.

*/ inline AwsSecretsManagerSecretRotationRules& WithAutomaticallyAfterDays(int value) { SetAutomaticallyAfterDays(value); return *this;} private: int m_automaticallyAfterDays; bool m_automaticallyAfterDaysHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws