/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace SSMIncidents { namespace Model { /** */ class UpdateDeletionProtectionRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API UpdateDeletionProtectionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDeletionProtection"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline UpdateDeletionProtectionRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline UpdateDeletionProtectionRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication set to update.

*/ inline UpdateDeletionProtectionRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateDeletionProtectionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateDeletionProtectionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token that ensures that the operation is called only once with the * specified details.

*/ inline UpdateDeletionProtectionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Specifies if deletion protection is turned on or off in your account.

*/ inline bool GetDeletionProtected() const{ return m_deletionProtected; } /** *

Specifies if deletion protection is turned on or off in your account.

*/ inline bool DeletionProtectedHasBeenSet() const { return m_deletionProtectedHasBeenSet; } /** *

Specifies if deletion protection is turned on or off in your account.

*/ inline void SetDeletionProtected(bool value) { m_deletionProtectedHasBeenSet = true; m_deletionProtected = value; } /** *

Specifies if deletion protection is turned on or off in your account.

*/ inline UpdateDeletionProtectionRequest& WithDeletionProtected(bool value) { SetDeletionProtected(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; bool m_deletionProtected; bool m_deletionProtectedHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws