1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/ram/RAM_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSVector.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <aws/ram/model/ResourceShareAssociation.h> 11 #include <utility> 12 13 namespace Aws 14 { 15 template<typename RESULT_TYPE> 16 class AmazonWebServiceResult; 17 18 namespace Utils 19 { 20 namespace Json 21 { 22 class JsonValue; 23 } // namespace Json 24 } // namespace Utils 25 namespace RAM 26 { 27 namespace Model 28 { 29 class AWS_RAM_API DisassociateResourceShareResult 30 { 31 public: 32 DisassociateResourceShareResult(); 33 DisassociateResourceShareResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 DisassociateResourceShareResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 35 36 37 /** 38 * <p>Information about the associations.</p> 39 */ GetResourceShareAssociations()40 inline const Aws::Vector<ResourceShareAssociation>& GetResourceShareAssociations() const{ return m_resourceShareAssociations; } 41 42 /** 43 * <p>Information about the associations.</p> 44 */ SetResourceShareAssociations(const Aws::Vector<ResourceShareAssociation> & value)45 inline void SetResourceShareAssociations(const Aws::Vector<ResourceShareAssociation>& value) { m_resourceShareAssociations = value; } 46 47 /** 48 * <p>Information about the associations.</p> 49 */ SetResourceShareAssociations(Aws::Vector<ResourceShareAssociation> && value)50 inline void SetResourceShareAssociations(Aws::Vector<ResourceShareAssociation>&& value) { m_resourceShareAssociations = std::move(value); } 51 52 /** 53 * <p>Information about the associations.</p> 54 */ WithResourceShareAssociations(const Aws::Vector<ResourceShareAssociation> & value)55 inline DisassociateResourceShareResult& WithResourceShareAssociations(const Aws::Vector<ResourceShareAssociation>& value) { SetResourceShareAssociations(value); return *this;} 56 57 /** 58 * <p>Information about the associations.</p> 59 */ WithResourceShareAssociations(Aws::Vector<ResourceShareAssociation> && value)60 inline DisassociateResourceShareResult& WithResourceShareAssociations(Aws::Vector<ResourceShareAssociation>&& value) { SetResourceShareAssociations(std::move(value)); return *this;} 61 62 /** 63 * <p>Information about the associations.</p> 64 */ AddResourceShareAssociations(const ResourceShareAssociation & value)65 inline DisassociateResourceShareResult& AddResourceShareAssociations(const ResourceShareAssociation& value) { m_resourceShareAssociations.push_back(value); return *this; } 66 67 /** 68 * <p>Information about the associations.</p> 69 */ AddResourceShareAssociations(ResourceShareAssociation && value)70 inline DisassociateResourceShareResult& AddResourceShareAssociations(ResourceShareAssociation&& value) { m_resourceShareAssociations.push_back(std::move(value)); return *this; } 71 72 73 /** 74 * <p>A unique, case-sensitive identifier that you provide to ensure the 75 * idempotency of the request.</p> 76 */ GetClientToken()77 inline const Aws::String& GetClientToken() const{ return m_clientToken; } 78 79 /** 80 * <p>A unique, case-sensitive identifier that you provide to ensure the 81 * idempotency of the request.</p> 82 */ SetClientToken(const Aws::String & value)83 inline void SetClientToken(const Aws::String& value) { m_clientToken = value; } 84 85 /** 86 * <p>A unique, case-sensitive identifier that you provide to ensure the 87 * idempotency of the request.</p> 88 */ SetClientToken(Aws::String && value)89 inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); } 90 91 /** 92 * <p>A unique, case-sensitive identifier that you provide to ensure the 93 * idempotency of the request.</p> 94 */ SetClientToken(const char * value)95 inline void SetClientToken(const char* value) { m_clientToken.assign(value); } 96 97 /** 98 * <p>A unique, case-sensitive identifier that you provide to ensure the 99 * idempotency of the request.</p> 100 */ WithClientToken(const Aws::String & value)101 inline DisassociateResourceShareResult& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} 102 103 /** 104 * <p>A unique, case-sensitive identifier that you provide to ensure the 105 * idempotency of the request.</p> 106 */ WithClientToken(Aws::String && value)107 inline DisassociateResourceShareResult& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} 108 109 /** 110 * <p>A unique, case-sensitive identifier that you provide to ensure the 111 * idempotency of the request.</p> 112 */ WithClientToken(const char * value)113 inline DisassociateResourceShareResult& WithClientToken(const char* value) { SetClientToken(value); return *this;} 114 115 private: 116 117 Aws::Vector<ResourceShareAssociation> m_resourceShareAssociations; 118 119 Aws::String m_clientToken; 120 }; 121 122 } // namespace Model 123 } // namespace RAM 124 } // namespace Aws 125