/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace RAM { namespace Model { class DisassociateResourceShareResult { public: AWS_RAM_API DisassociateResourceShareResult(); AWS_RAM_API DisassociateResourceShareResult(const Aws::AmazonWebServiceResult& result); AWS_RAM_API DisassociateResourceShareResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline const Aws::Vector& GetResourceShareAssociations() const{ return m_resourceShareAssociations; } /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline void SetResourceShareAssociations(const Aws::Vector& value) { m_resourceShareAssociations = value; } /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline void SetResourceShareAssociations(Aws::Vector&& value) { m_resourceShareAssociations = std::move(value); } /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline DisassociateResourceShareResult& WithResourceShareAssociations(const Aws::Vector& value) { SetResourceShareAssociations(value); return *this;} /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline DisassociateResourceShareResult& WithResourceShareAssociations(Aws::Vector&& value) { SetResourceShareAssociations(std::move(value)); return *this;} /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline DisassociateResourceShareResult& AddResourceShareAssociations(const ResourceShareAssociation& value) { m_resourceShareAssociations.push_back(value); return *this; } /** *

An array of objects with information about the updated associations for this * resource share.

*/ inline DisassociateResourceShareResult& AddResourceShareAssociations(ResourceShareAssociation&& value) { m_resourceShareAssociations.push_back(std::move(value)); return *this; } /** *

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

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

The idempotency identifier associated with this request. If you want to * repeat the same operation in an idempotent manner then you must include this * value in the clientToken request parameter of that later call. All * other parameters must also have the same values that you used in the first * call.

*/ inline DisassociateResourceShareResult& WithClientToken(const char* value) { SetClientToken(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DisassociateResourceShareResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DisassociateResourceShareResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DisassociateResourceShareResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_resourceShareAssociations; Aws::String m_clientToken; Aws::String m_requestId; }; } // namespace Model } // namespace RAM } // namespace Aws