/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace LexModelsV2 { namespace Model { class AWS_LEXMODELSV2_API UpdateResourcePolicyResult { public: UpdateResourcePolicyResult(); UpdateResourcePolicyResult(const Aws::AmazonWebServiceResult& result); UpdateResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline void SetResourceArn(const char* value) { m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline UpdateResourcePolicyResult& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline UpdateResourcePolicyResult& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the bot or bot alias that the resource * policy is attached to.

*/ inline UpdateResourcePolicyResult& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline const Aws::String& GetRevisionId() const{ return m_revisionId; } /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline void SetRevisionId(const Aws::String& value) { m_revisionId = value; } /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline void SetRevisionId(Aws::String&& value) { m_revisionId = std::move(value); } /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline void SetRevisionId(const char* value) { m_revisionId.assign(value); } /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline UpdateResourcePolicyResult& WithRevisionId(const Aws::String& value) { SetRevisionId(value); return *this;} /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline UpdateResourcePolicyResult& WithRevisionId(Aws::String&& value) { SetRevisionId(std::move(value)); return *this;} /** *

The current revision of the resource policy. Use the revision ID to make sure * that you are updating the most current version of a resource policy when you add * a policy statement to a resource, delete a resource, or update a resource.

*/ inline UpdateResourcePolicyResult& WithRevisionId(const char* value) { SetRevisionId(value); return *this;} private: Aws::String m_resourceArn; Aws::String m_revisionId; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws