AWS SDK for C++  1.9.129
AWS SDK for C++
UpdateComponentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ApplicationInsights
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateComponent"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetResourceGroupName() const{ return m_resourceGroupName; }
42 
46  inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
47 
51  inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
52 
56  inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
57 
61  inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
62 
66  inline UpdateComponentRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
67 
71  inline UpdateComponentRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
72 
76  inline UpdateComponentRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
77 
78 
82  inline const Aws::String& GetComponentName() const{ return m_componentName; }
83 
87  inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
88 
92  inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
93 
97  inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
98 
102  inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
103 
107  inline UpdateComponentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
108 
112  inline UpdateComponentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
113 
117  inline UpdateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
118 
119 
123  inline const Aws::String& GetNewComponentName() const{ return m_newComponentName; }
124 
128  inline bool NewComponentNameHasBeenSet() const { return m_newComponentNameHasBeenSet; }
129 
133  inline void SetNewComponentName(const Aws::String& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = value; }
134 
138  inline void SetNewComponentName(Aws::String&& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = std::move(value); }
139 
143  inline void SetNewComponentName(const char* value) { m_newComponentNameHasBeenSet = true; m_newComponentName.assign(value); }
144 
148  inline UpdateComponentRequest& WithNewComponentName(const Aws::String& value) { SetNewComponentName(value); return *this;}
149 
153  inline UpdateComponentRequest& WithNewComponentName(Aws::String&& value) { SetNewComponentName(std::move(value)); return *this;}
154 
158  inline UpdateComponentRequest& WithNewComponentName(const char* value) { SetNewComponentName(value); return *this;}
159 
160 
164  inline const Aws::Vector<Aws::String>& GetResourceList() const{ return m_resourceList; }
165 
169  inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
170 
174  inline void SetResourceList(const Aws::Vector<Aws::String>& value) { m_resourceListHasBeenSet = true; m_resourceList = value; }
175 
179  inline void SetResourceList(Aws::Vector<Aws::String>&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); }
180 
184  inline UpdateComponentRequest& WithResourceList(const Aws::Vector<Aws::String>& value) { SetResourceList(value); return *this;}
185 
189  inline UpdateComponentRequest& WithResourceList(Aws::Vector<Aws::String>&& value) { SetResourceList(std::move(value)); return *this;}
190 
194  inline UpdateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
195 
199  inline UpdateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; }
200 
204  inline UpdateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
205 
206  private:
207 
208  Aws::String m_resourceGroupName;
209  bool m_resourceGroupNameHasBeenSet;
210 
211  Aws::String m_componentName;
212  bool m_componentNameHasBeenSet;
213 
214  Aws::String m_newComponentName;
215  bool m_newComponentNameHasBeenSet;
216 
217  Aws::Vector<Aws::String> m_resourceList;
218  bool m_resourceListHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace ApplicationInsights
223 } // namespace Aws
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetNewComponentName
void SetNewComponentName(const char *value)
Definition: UpdateComponentRequest.h:143
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetResourceList
void SetResourceList(const Aws::Vector< Aws::String > &value)
Definition: UpdateComponentRequest.h:174
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetComponentName
const Aws::String & GetComponentName() const
Definition: UpdateComponentRequest.h:82
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: UpdateComponentRequest.h:92
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithResourceGroupName
UpdateComponentRequest & WithResourceGroupName(Aws::String &&value)
Definition: UpdateComponentRequest.h:71
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetNewComponentName
void SetNewComponentName(const Aws::String &value)
Definition: UpdateComponentRequest.h:133
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithResourceGroupName
UpdateComponentRequest & WithResourceGroupName(const char *value)
Definition: UpdateComponentRequest.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: UpdateComponentRequest.h:97
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithNewComponentName
UpdateComponentRequest & WithNewComponentName(const char *value)
Definition: UpdateComponentRequest.h:158
Aws::ApplicationInsights::Model::UpdateComponentRequest::AddResourceList
UpdateComponentRequest & AddResourceList(const char *value)
Definition: UpdateComponentRequest.h:204
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateComponentRequest.h:31
AWSVector.h
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetResourceGroupName
void SetResourceGroupName(Aws::String &&value)
Definition: UpdateComponentRequest.h:56
Aws::ApplicationInsights::ApplicationInsightsRequest
Definition: ApplicationInsightsRequest.h:17
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithNewComponentName
UpdateComponentRequest & WithNewComponentName(Aws::String &&value)
Definition: UpdateComponentRequest.h:153
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetResourceList
void SetResourceList(Aws::Vector< Aws::String > &&value)
Definition: UpdateComponentRequest.h:179
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithNewComponentName
UpdateComponentRequest & WithNewComponentName(const Aws::String &value)
Definition: UpdateComponentRequest.h:148
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetNewComponentName
const Aws::String & GetNewComponentName() const
Definition: UpdateComponentRequest.h:123
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetResourceGroupName
const Aws::String & GetResourceGroupName() const
Definition: UpdateComponentRequest.h:41
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithComponentName
UpdateComponentRequest & WithComponentName(Aws::String &&value)
Definition: UpdateComponentRequest.h:112
Aws::ApplicationInsights::Model::UpdateComponentRequest::AddResourceList
UpdateComponentRequest & AddResourceList(const Aws::String &value)
Definition: UpdateComponentRequest.h:194
Aws::ApplicationInsights::Model::UpdateComponentRequest::AddResourceList
UpdateComponentRequest & AddResourceList(Aws::String &&value)
Definition: UpdateComponentRequest.h:199
AWS_APPLICATIONINSIGHTS_API
#define AWS_APPLICATIONINSIGHTS_API
Definition: ApplicationInsights_EXPORTS.h:28
ApplicationInsightsRequest.h
Aws::ApplicationInsights::Model::UpdateComponentRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::ApplicationInsights::Model::UpdateComponentRequest
Definition: UpdateComponentRequest.h:23
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithResourceGroupName
UpdateComponentRequest & WithResourceGroupName(const Aws::String &value)
Definition: UpdateComponentRequest.h:66
Aws::ApplicationInsights::Model::UpdateComponentRequest::ComponentNameHasBeenSet
bool ComponentNameHasBeenSet() const
Definition: UpdateComponentRequest.h:87
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithResourceList
UpdateComponentRequest & WithResourceList(const Aws::Vector< Aws::String > &value)
Definition: UpdateComponentRequest.h:184
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetComponentName
void SetComponentName(const char *value)
Definition: UpdateComponentRequest.h:102
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetResourceGroupName
void SetResourceGroupName(const Aws::String &value)
Definition: UpdateComponentRequest.h:51
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetResourceList
const Aws::Vector< Aws::String > & GetResourceList() const
Definition: UpdateComponentRequest.h:164
Aws::ApplicationInsights::Model::UpdateComponentRequest::ResourceGroupNameHasBeenSet
bool ResourceGroupNameHasBeenSet() const
Definition: UpdateComponentRequest.h:46
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithResourceList
UpdateComponentRequest & WithResourceList(Aws::Vector< Aws::String > &&value)
Definition: UpdateComponentRequest.h:189
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetResourceGroupName
void SetResourceGroupName(const char *value)
Definition: UpdateComponentRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationInsights::Model::UpdateComponentRequest::NewComponentNameHasBeenSet
bool NewComponentNameHasBeenSet() const
Definition: UpdateComponentRequest.h:128
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithComponentName
UpdateComponentRequest & WithComponentName(const Aws::String &value)
Definition: UpdateComponentRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationInsights::Model::UpdateComponentRequest::SetNewComponentName
void SetNewComponentName(Aws::String &&value)
Definition: UpdateComponentRequest.h:138
Aws::ApplicationInsights::Model::UpdateComponentRequest::UpdateComponentRequest
UpdateComponentRequest()
ApplicationInsights_EXPORTS.h
Aws::ApplicationInsights::Model::UpdateComponentRequest::WithComponentName
UpdateComponentRequest & WithComponentName(const char *value)
Definition: UpdateComponentRequest.h:117
Aws::ApplicationInsights::Model::UpdateComponentRequest::ResourceListHasBeenSet
bool ResourceListHasBeenSet() const
Definition: UpdateComponentRequest.h:169
Aws::ApplicationInsights::Model::UpdateComponentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override