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/servicecatalog/ServiceCatalog_EXPORTS.h>
8 #include <aws/servicecatalog/model/OrganizationNodeType.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18   class JsonValue;
19   class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ServiceCatalog
23 {
24 namespace Model
25 {
26 
27   /**
28    * <p>Information about the organization node.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/OrganizationNode">AWS
30    * API Reference</a></p>
31    */
32   class AWS_SERVICECATALOG_API OrganizationNode
33   {
34   public:
35     OrganizationNode();
36     OrganizationNode(Aws::Utils::Json::JsonView jsonValue);
37     OrganizationNode& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The organization node type.</p>
43      */
GetType()44     inline const OrganizationNodeType& GetType() const{ return m_type; }
45 
46     /**
47      * <p>The organization node type.</p>
48      */
TypeHasBeenSet()49     inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
50 
51     /**
52      * <p>The organization node type.</p>
53      */
SetType(const OrganizationNodeType & value)54     inline void SetType(const OrganizationNodeType& value) { m_typeHasBeenSet = true; m_type = value; }
55 
56     /**
57      * <p>The organization node type.</p>
58      */
SetType(OrganizationNodeType && value)59     inline void SetType(OrganizationNodeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
60 
61     /**
62      * <p>The organization node type.</p>
63      */
WithType(const OrganizationNodeType & value)64     inline OrganizationNode& WithType(const OrganizationNodeType& value) { SetType(value); return *this;}
65 
66     /**
67      * <p>The organization node type.</p>
68      */
WithType(OrganizationNodeType && value)69     inline OrganizationNode& WithType(OrganizationNodeType&& value) { SetType(std::move(value)); return *this;}
70 
71 
72     /**
73      * <p>The identifier of the organization node.</p>
74      */
GetValue()75     inline const Aws::String& GetValue() const{ return m_value; }
76 
77     /**
78      * <p>The identifier of the organization node.</p>
79      */
ValueHasBeenSet()80     inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 
82     /**
83      * <p>The identifier of the organization node.</p>
84      */
SetValue(const Aws::String & value)85     inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
86 
87     /**
88      * <p>The identifier of the organization node.</p>
89      */
SetValue(Aws::String && value)90     inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
91 
92     /**
93      * <p>The identifier of the organization node.</p>
94      */
SetValue(const char * value)95     inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
96 
97     /**
98      * <p>The identifier of the organization node.</p>
99      */
WithValue(const Aws::String & value)100     inline OrganizationNode& WithValue(const Aws::String& value) { SetValue(value); return *this;}
101 
102     /**
103      * <p>The identifier of the organization node.</p>
104      */
WithValue(Aws::String && value)105     inline OrganizationNode& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
106 
107     /**
108      * <p>The identifier of the organization node.</p>
109      */
WithValue(const char * value)110     inline OrganizationNode& WithValue(const char* value) { SetValue(value); return *this;}
111 
112   private:
113 
114     OrganizationNodeType m_type;
115     bool m_typeHasBeenSet;
116 
117     Aws::String m_value;
118     bool m_valueHasBeenSet;
119   };
120 
121 } // namespace Model
122 } // namespace ServiceCatalog
123 } // namespace Aws
124