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/workmail/WorkMail_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 template<typename RESULT_TYPE> 14 class AmazonWebServiceResult; 15 16 namespace Utils 17 { 18 namespace Json 19 { 20 class JsonValue; 21 } // namespace Json 22 } // namespace Utils 23 namespace WorkMail 24 { 25 namespace Model 26 { 27 class AWS_WORKMAIL_API CreateResourceResult 28 { 29 public: 30 CreateResourceResult(); 31 CreateResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 32 CreateResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); 33 34 35 /** 36 * <p>The identifier of the new resource.</p> 37 */ GetResourceId()38 inline const Aws::String& GetResourceId() const{ return m_resourceId; } 39 40 /** 41 * <p>The identifier of the new resource.</p> 42 */ SetResourceId(const Aws::String & value)43 inline void SetResourceId(const Aws::String& value) { m_resourceId = value; } 44 45 /** 46 * <p>The identifier of the new resource.</p> 47 */ SetResourceId(Aws::String && value)48 inline void SetResourceId(Aws::String&& value) { m_resourceId = std::move(value); } 49 50 /** 51 * <p>The identifier of the new resource.</p> 52 */ SetResourceId(const char * value)53 inline void SetResourceId(const char* value) { m_resourceId.assign(value); } 54 55 /** 56 * <p>The identifier of the new resource.</p> 57 */ WithResourceId(const Aws::String & value)58 inline CreateResourceResult& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} 59 60 /** 61 * <p>The identifier of the new resource.</p> 62 */ WithResourceId(Aws::String && value)63 inline CreateResourceResult& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} 64 65 /** 66 * <p>The identifier of the new resource.</p> 67 */ WithResourceId(const char * value)68 inline CreateResourceResult& WithResourceId(const char* value) { SetResourceId(value); return *this;} 69 70 private: 71 72 Aws::String m_resourceId; 73 }; 74 75 } // namespace Model 76 } // namespace WorkMail 77 } // namespace Aws 78