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/ram/model/ResourceShareInvitation.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 template<typename RESULT_TYPE> 15 class AmazonWebServiceResult; 16 17 namespace Utils 18 { 19 namespace Json 20 { 21 class JsonValue; 22 } // namespace Json 23 } // namespace Utils 24 namespace RAM 25 { 26 namespace Model 27 { 28 class AWS_RAM_API AcceptResourceShareInvitationResult 29 { 30 public: 31 AcceptResourceShareInvitationResult(); 32 AcceptResourceShareInvitationResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 AcceptResourceShareInvitationResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>Information about the invitation.</p> 38 */ GetResourceShareInvitation()39 inline const ResourceShareInvitation& GetResourceShareInvitation() const{ return m_resourceShareInvitation; } 40 41 /** 42 * <p>Information about the invitation.</p> 43 */ SetResourceShareInvitation(const ResourceShareInvitation & value)44 inline void SetResourceShareInvitation(const ResourceShareInvitation& value) { m_resourceShareInvitation = value; } 45 46 /** 47 * <p>Information about the invitation.</p> 48 */ SetResourceShareInvitation(ResourceShareInvitation && value)49 inline void SetResourceShareInvitation(ResourceShareInvitation&& value) { m_resourceShareInvitation = std::move(value); } 50 51 /** 52 * <p>Information about the invitation.</p> 53 */ WithResourceShareInvitation(const ResourceShareInvitation & value)54 inline AcceptResourceShareInvitationResult& WithResourceShareInvitation(const ResourceShareInvitation& value) { SetResourceShareInvitation(value); return *this;} 55 56 /** 57 * <p>Information about the invitation.</p> 58 */ WithResourceShareInvitation(ResourceShareInvitation && value)59 inline AcceptResourceShareInvitationResult& WithResourceShareInvitation(ResourceShareInvitation&& value) { SetResourceShareInvitation(std::move(value)); return *this;} 60 61 62 /** 63 * <p>A unique, case-sensitive identifier that you provide to ensure the 64 * idempotency of the request.</p> 65 */ GetClientToken()66 inline const Aws::String& GetClientToken() const{ return m_clientToken; } 67 68 /** 69 * <p>A unique, case-sensitive identifier that you provide to ensure the 70 * idempotency of the request.</p> 71 */ SetClientToken(const Aws::String & value)72 inline void SetClientToken(const Aws::String& value) { m_clientToken = value; } 73 74 /** 75 * <p>A unique, case-sensitive identifier that you provide to ensure the 76 * idempotency of the request.</p> 77 */ SetClientToken(Aws::String && value)78 inline void SetClientToken(Aws::String&& value) { m_clientToken = std::move(value); } 79 80 /** 81 * <p>A unique, case-sensitive identifier that you provide to ensure the 82 * idempotency of the request.</p> 83 */ SetClientToken(const char * value)84 inline void SetClientToken(const char* value) { m_clientToken.assign(value); } 85 86 /** 87 * <p>A unique, case-sensitive identifier that you provide to ensure the 88 * idempotency of the request.</p> 89 */ WithClientToken(const Aws::String & value)90 inline AcceptResourceShareInvitationResult& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} 91 92 /** 93 * <p>A unique, case-sensitive identifier that you provide to ensure the 94 * idempotency of the request.</p> 95 */ WithClientToken(Aws::String && value)96 inline AcceptResourceShareInvitationResult& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} 97 98 /** 99 * <p>A unique, case-sensitive identifier that you provide to ensure the 100 * idempotency of the request.</p> 101 */ WithClientToken(const char * value)102 inline AcceptResourceShareInvitationResult& WithClientToken(const char* value) { SetClientToken(value); return *this;} 103 104 private: 105 106 ResourceShareInvitation m_resourceShareInvitation; 107 108 Aws::String m_clientToken; 109 }; 110 111 } // namespace Model 112 } // namespace RAM 113 } // namespace Aws 114