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/license-manager/LicenseManager_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/license-manager/model/GrantStatus.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 LicenseManager 25 { 26 namespace Model 27 { 28 class AWS_LICENSEMANAGER_API DeleteGrantResult 29 { 30 public: 31 DeleteGrantResult(); 32 DeleteGrantResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 DeleteGrantResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 34 35 36 /** 37 * <p>Grant ARN.</p> 38 */ GetGrantArn()39 inline const Aws::String& GetGrantArn() const{ return m_grantArn; } 40 41 /** 42 * <p>Grant ARN.</p> 43 */ SetGrantArn(const Aws::String & value)44 inline void SetGrantArn(const Aws::String& value) { m_grantArn = value; } 45 46 /** 47 * <p>Grant ARN.</p> 48 */ SetGrantArn(Aws::String && value)49 inline void SetGrantArn(Aws::String&& value) { m_grantArn = std::move(value); } 50 51 /** 52 * <p>Grant ARN.</p> 53 */ SetGrantArn(const char * value)54 inline void SetGrantArn(const char* value) { m_grantArn.assign(value); } 55 56 /** 57 * <p>Grant ARN.</p> 58 */ WithGrantArn(const Aws::String & value)59 inline DeleteGrantResult& WithGrantArn(const Aws::String& value) { SetGrantArn(value); return *this;} 60 61 /** 62 * <p>Grant ARN.</p> 63 */ WithGrantArn(Aws::String && value)64 inline DeleteGrantResult& WithGrantArn(Aws::String&& value) { SetGrantArn(std::move(value)); return *this;} 65 66 /** 67 * <p>Grant ARN.</p> 68 */ WithGrantArn(const char * value)69 inline DeleteGrantResult& WithGrantArn(const char* value) { SetGrantArn(value); return *this;} 70 71 72 /** 73 * <p>Grant status.</p> 74 */ GetStatus()75 inline const GrantStatus& GetStatus() const{ return m_status; } 76 77 /** 78 * <p>Grant status.</p> 79 */ SetStatus(const GrantStatus & value)80 inline void SetStatus(const GrantStatus& value) { m_status = value; } 81 82 /** 83 * <p>Grant status.</p> 84 */ SetStatus(GrantStatus && value)85 inline void SetStatus(GrantStatus&& value) { m_status = std::move(value); } 86 87 /** 88 * <p>Grant status.</p> 89 */ WithStatus(const GrantStatus & value)90 inline DeleteGrantResult& WithStatus(const GrantStatus& value) { SetStatus(value); return *this;} 91 92 /** 93 * <p>Grant status.</p> 94 */ WithStatus(GrantStatus && value)95 inline DeleteGrantResult& WithStatus(GrantStatus&& value) { SetStatus(std::move(value)); return *this;} 96 97 98 /** 99 * <p>Grant version.</p> 100 */ GetVersion()101 inline const Aws::String& GetVersion() const{ return m_version; } 102 103 /** 104 * <p>Grant version.</p> 105 */ SetVersion(const Aws::String & value)106 inline void SetVersion(const Aws::String& value) { m_version = value; } 107 108 /** 109 * <p>Grant version.</p> 110 */ SetVersion(Aws::String && value)111 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); } 112 113 /** 114 * <p>Grant version.</p> 115 */ SetVersion(const char * value)116 inline void SetVersion(const char* value) { m_version.assign(value); } 117 118 /** 119 * <p>Grant version.</p> 120 */ WithVersion(const Aws::String & value)121 inline DeleteGrantResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} 122 123 /** 124 * <p>Grant version.</p> 125 */ WithVersion(Aws::String && value)126 inline DeleteGrantResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} 127 128 /** 129 * <p>Grant version.</p> 130 */ WithVersion(const char * value)131 inline DeleteGrantResult& WithVersion(const char* value) { SetVersion(value); return *this;} 132 133 private: 134 135 Aws::String m_grantArn; 136 137 GrantStatus m_status; 138 139 Aws::String m_version; 140 }; 141 142 } // namespace Model 143 } // namespace LicenseManager 144 } // namespace Aws 145