AWS SDK for C++  1.9.132
AWS SDK for C++
CreateComponentRequest.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 "CreateComponent"; }
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 CreateComponentRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
67 
71  inline CreateComponentRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
72 
76  inline CreateComponentRequest& 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 CreateComponentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
108 
112  inline CreateComponentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
113 
117  inline CreateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
118 
119 
123  inline const Aws::Vector<Aws::String>& GetResourceList() const{ return m_resourceList; }
124 
128  inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
129 
133  inline void SetResourceList(const Aws::Vector<Aws::String>& value) { m_resourceListHasBeenSet = true; m_resourceList = value; }
134 
138  inline void SetResourceList(Aws::Vector<Aws::String>&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); }
139 
143  inline CreateComponentRequest& WithResourceList(const Aws::Vector<Aws::String>& value) { SetResourceList(value); return *this;}
144 
148  inline CreateComponentRequest& WithResourceList(Aws::Vector<Aws::String>&& value) { SetResourceList(std::move(value)); return *this;}
149 
153  inline CreateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
154 
158  inline CreateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; }
159 
163  inline CreateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
164 
165  private:
166 
167  Aws::String m_resourceGroupName;
168  bool m_resourceGroupNameHasBeenSet;
169 
170  Aws::String m_componentName;
171  bool m_componentNameHasBeenSet;
172 
173  Aws::Vector<Aws::String> m_resourceList;
174  bool m_resourceListHasBeenSet;
175  };
176 
177 } // namespace Model
178 } // namespace ApplicationInsights
179 } // namespace Aws
Aws::ApplicationInsights::Model::CreateComponentRequest
Definition: CreateComponentRequest.h:23
Aws::ApplicationInsights::Model::CreateComponentRequest::SetComponentName
void SetComponentName(Aws::String &&value)
Definition: CreateComponentRequest.h:97
Aws::ApplicationInsights::Model::CreateComponentRequest::WithComponentName
CreateComponentRequest & WithComponentName(Aws::String &&value)
Definition: CreateComponentRequest.h:112
Aws::ApplicationInsights::Model::CreateComponentRequest::GetResourceList
const Aws::Vector< Aws::String > & GetResourceList() const
Definition: CreateComponentRequest.h:123
Aws::ApplicationInsights::Model::CreateComponentRequest::WithResourceGroupName
CreateComponentRequest & WithResourceGroupName(const char *value)
Definition: CreateComponentRequest.h:76
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationInsights::Model::CreateComponentRequest::ResourceGroupNameHasBeenSet
bool ResourceGroupNameHasBeenSet() const
Definition: CreateComponentRequest.h:46
Aws::ApplicationInsights::Model::CreateComponentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationInsights::Model::CreateComponentRequest::SetResourceGroupName
void SetResourceGroupName(Aws::String &&value)
Definition: CreateComponentRequest.h:56
Aws::ApplicationInsights::Model::CreateComponentRequest::GetResourceGroupName
const Aws::String & GetResourceGroupName() const
Definition: CreateComponentRequest.h:41
Aws::ApplicationInsights::Model::CreateComponentRequest::SetResourceGroupName
void SetResourceGroupName(const Aws::String &value)
Definition: CreateComponentRequest.h:51
Aws::ApplicationInsights::Model::CreateComponentRequest::ResourceListHasBeenSet
bool ResourceListHasBeenSet() const
Definition: CreateComponentRequest.h:128
Aws::ApplicationInsights::Model::CreateComponentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationInsights::Model::CreateComponentRequest::ComponentNameHasBeenSet
bool ComponentNameHasBeenSet() const
Definition: CreateComponentRequest.h:87
Aws::ApplicationInsights::Model::CreateComponentRequest::SetResourceGroupName
void SetResourceGroupName(const char *value)
Definition: CreateComponentRequest.h:61
AWSVector.h
Aws::ApplicationInsights::Model::CreateComponentRequest::SetResourceList
void SetResourceList(Aws::Vector< Aws::String > &&value)
Definition: CreateComponentRequest.h:138
Aws::ApplicationInsights::Model::CreateComponentRequest::GetComponentName
const Aws::String & GetComponentName() const
Definition: CreateComponentRequest.h:82
Aws::ApplicationInsights::ApplicationInsightsRequest
Definition: ApplicationInsightsRequest.h:17
AWS_APPLICATIONINSIGHTS_API
#define AWS_APPLICATIONINSIGHTS_API
Definition: ApplicationInsights_EXPORTS.h:28
ApplicationInsightsRequest.h
Aws::ApplicationInsights::Model::CreateComponentRequest::AddResourceList
CreateComponentRequest & AddResourceList(Aws::String &&value)
Definition: CreateComponentRequest.h:158
Aws::ApplicationInsights::Model::CreateComponentRequest::AddResourceList
CreateComponentRequest & AddResourceList(const Aws::String &value)
Definition: CreateComponentRequest.h:153
Aws::ApplicationInsights::Model::CreateComponentRequest::SetComponentName
void SetComponentName(const Aws::String &value)
Definition: CreateComponentRequest.h:92
AWSString.h
Aws::ApplicationInsights::Model::CreateComponentRequest::WithResourceList
CreateComponentRequest & WithResourceList(Aws::Vector< Aws::String > &&value)
Definition: CreateComponentRequest.h:148
Aws::ApplicationInsights::Model::CreateComponentRequest::SetComponentName
void SetComponentName(const char *value)
Definition: CreateComponentRequest.h:102
Aws::ApplicationInsights::Model::CreateComponentRequest::WithResourceGroupName
CreateComponentRequest & WithResourceGroupName(const Aws::String &value)
Definition: CreateComponentRequest.h:66
Aws::ApplicationInsights::Model::CreateComponentRequest::WithResourceGroupName
CreateComponentRequest & WithResourceGroupName(Aws::String &&value)
Definition: CreateComponentRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationInsights::Model::CreateComponentRequest::WithComponentName
CreateComponentRequest & WithComponentName(const Aws::String &value)
Definition: CreateComponentRequest.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationInsights::Model::CreateComponentRequest::WithComponentName
CreateComponentRequest & WithComponentName(const char *value)
Definition: CreateComponentRequest.h:117
Aws::ApplicationInsights::Model::CreateComponentRequest::CreateComponentRequest
CreateComponentRequest()
Aws::ApplicationInsights::Model::CreateComponentRequest::WithResourceList
CreateComponentRequest & WithResourceList(const Aws::Vector< Aws::String > &value)
Definition: CreateComponentRequest.h:143
ApplicationInsights_EXPORTS.h
Aws::ApplicationInsights::Model::CreateComponentRequest::SetResourceList
void SetResourceList(const Aws::Vector< Aws::String > &value)
Definition: CreateComponentRequest.h:133
Aws::ApplicationInsights::Model::CreateComponentRequest::AddResourceList
CreateComponentRequest & AddResourceList(const char *value)
Definition: CreateComponentRequest.h:163
Aws::ApplicationInsights::Model::CreateComponentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateComponentRequest.h:31