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/cloudcontrol/CloudControlApi_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <aws/cloudcontrol/model/ResourceDescription.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 CloudControlApi
25 {
26 namespace Model
27 {
28   class AWS_CLOUDCONTROLAPI_API GetResourceResult
29   {
30   public:
31     GetResourceResult();
32     GetResourceResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33     GetResourceResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
34 
35 
36     /**
37      * <p>The name of the resource type.</p>
38      */
GetTypeName()39     inline const Aws::String& GetTypeName() const{ return m_typeName; }
40 
41     /**
42      * <p>The name of the resource type.</p>
43      */
SetTypeName(const Aws::String & value)44     inline void SetTypeName(const Aws::String& value) { m_typeName = value; }
45 
46     /**
47      * <p>The name of the resource type.</p>
48      */
SetTypeName(Aws::String && value)49     inline void SetTypeName(Aws::String&& value) { m_typeName = std::move(value); }
50 
51     /**
52      * <p>The name of the resource type.</p>
53      */
SetTypeName(const char * value)54     inline void SetTypeName(const char* value) { m_typeName.assign(value); }
55 
56     /**
57      * <p>The name of the resource type.</p>
58      */
WithTypeName(const Aws::String & value)59     inline GetResourceResult& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
60 
61     /**
62      * <p>The name of the resource type.</p>
63      */
WithTypeName(Aws::String && value)64     inline GetResourceResult& WithTypeName(Aws::String&& value) { SetTypeName(std::move(value)); return *this;}
65 
66     /**
67      * <p>The name of the resource type.</p>
68      */
WithTypeName(const char * value)69     inline GetResourceResult& WithTypeName(const char* value) { SetTypeName(value); return *this;}
70 
71 
72 
GetResourceDescription()73     inline const ResourceDescription& GetResourceDescription() const{ return m_resourceDescription; }
74 
75 
SetResourceDescription(const ResourceDescription & value)76     inline void SetResourceDescription(const ResourceDescription& value) { m_resourceDescription = value; }
77 
78 
SetResourceDescription(ResourceDescription && value)79     inline void SetResourceDescription(ResourceDescription&& value) { m_resourceDescription = std::move(value); }
80 
81 
WithResourceDescription(const ResourceDescription & value)82     inline GetResourceResult& WithResourceDescription(const ResourceDescription& value) { SetResourceDescription(value); return *this;}
83 
84 
WithResourceDescription(ResourceDescription && value)85     inline GetResourceResult& WithResourceDescription(ResourceDescription&& value) { SetResourceDescription(std::move(value)); return *this;}
86 
87   private:
88 
89     Aws::String m_typeName;
90 
91     ResourceDescription m_resourceDescription;
92   };
93 
94 } // namespace Model
95 } // namespace CloudControlApi
96 } // namespace Aws
97