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/ServiceCatalogRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ServiceCatalog
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_SERVICECATALOG_API CreateTagOptionRequest : public ServiceCatalogRequest
22   {
23   public:
24     CreateTagOptionRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "CreateTagOption"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The TagOption key.</p>
39      */
GetKey()40     inline const Aws::String& GetKey() const{ return m_key; }
41 
42     /**
43      * <p>The TagOption key.</p>
44      */
KeyHasBeenSet()45     inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
46 
47     /**
48      * <p>The TagOption key.</p>
49      */
SetKey(const Aws::String & value)50     inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
51 
52     /**
53      * <p>The TagOption key.</p>
54      */
SetKey(Aws::String && value)55     inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
56 
57     /**
58      * <p>The TagOption key.</p>
59      */
SetKey(const char * value)60     inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
61 
62     /**
63      * <p>The TagOption key.</p>
64      */
WithKey(const Aws::String & value)65     inline CreateTagOptionRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
66 
67     /**
68      * <p>The TagOption key.</p>
69      */
WithKey(Aws::String && value)70     inline CreateTagOptionRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
71 
72     /**
73      * <p>The TagOption key.</p>
74      */
WithKey(const char * value)75     inline CreateTagOptionRequest& WithKey(const char* value) { SetKey(value); return *this;}
76 
77 
78     /**
79      * <p>The TagOption value.</p>
80      */
GetValue()81     inline const Aws::String& GetValue() const{ return m_value; }
82 
83     /**
84      * <p>The TagOption value.</p>
85      */
ValueHasBeenSet()86     inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
87 
88     /**
89      * <p>The TagOption value.</p>
90      */
SetValue(const Aws::String & value)91     inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
92 
93     /**
94      * <p>The TagOption value.</p>
95      */
SetValue(Aws::String && value)96     inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
97 
98     /**
99      * <p>The TagOption value.</p>
100      */
SetValue(const char * value)101     inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
102 
103     /**
104      * <p>The TagOption value.</p>
105      */
WithValue(const Aws::String & value)106     inline CreateTagOptionRequest& WithValue(const Aws::String& value) { SetValue(value); return *this;}
107 
108     /**
109      * <p>The TagOption value.</p>
110      */
WithValue(Aws::String && value)111     inline CreateTagOptionRequest& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
112 
113     /**
114      * <p>The TagOption value.</p>
115      */
WithValue(const char * value)116     inline CreateTagOptionRequest& WithValue(const char* value) { SetValue(value); return *this;}
117 
118   private:
119 
120     Aws::String m_key;
121     bool m_keyHasBeenSet;
122 
123     Aws::String m_value;
124     bool m_valueHasBeenSet;
125   };
126 
127 } // namespace Model
128 } // namespace ServiceCatalog
129 } // namespace Aws
130