AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateComponentRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsightsRequest.h>
8#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ApplicationInsights {
16namespace Model {
17
21 public:
22 AWS_APPLICATIONINSIGHTS_API CreateComponentRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateComponent"; }
29
30 AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
31
32 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
39 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
40 template <typename ResourceGroupNameT = Aws::String>
41 void SetResourceGroupName(ResourceGroupNameT&& value) {
42 m_resourceGroupNameHasBeenSet = true;
43 m_resourceGroupName = std::forward<ResourceGroupNameT>(value);
44 }
45 template <typename ResourceGroupNameT = Aws::String>
46 CreateComponentRequest& WithResourceGroupName(ResourceGroupNameT&& value) {
47 SetResourceGroupName(std::forward<ResourceGroupNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetComponentName() const { return m_componentName; }
57 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
58 template <typename ComponentNameT = Aws::String>
59 void SetComponentName(ComponentNameT&& value) {
60 m_componentNameHasBeenSet = true;
61 m_componentName = std::forward<ComponentNameT>(value);
62 }
63 template <typename ComponentNameT = Aws::String>
64 CreateComponentRequest& WithComponentName(ComponentNameT&& value) {
65 SetComponentName(std::forward<ComponentNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetResourceList() const { return m_resourceList; }
75 inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
76 template <typename ResourceListT = Aws::Vector<Aws::String>>
77 void SetResourceList(ResourceListT&& value) {
78 m_resourceListHasBeenSet = true;
79 m_resourceList = std::forward<ResourceListT>(value);
80 }
81 template <typename ResourceListT = Aws::Vector<Aws::String>>
82 CreateComponentRequest& WithResourceList(ResourceListT&& value) {
83 SetResourceList(std::forward<ResourceListT>(value));
84 return *this;
85 }
86 template <typename ResourceListT = Aws::String>
87 CreateComponentRequest& AddResourceList(ResourceListT&& value) {
88 m_resourceListHasBeenSet = true;
89 m_resourceList.emplace_back(std::forward<ResourceListT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_resourceGroupName;
95
96 Aws::String m_componentName;
97
98 Aws::Vector<Aws::String> m_resourceList;
99 bool m_resourceGroupNameHasBeenSet = false;
100 bool m_componentNameHasBeenSet = false;
101 bool m_resourceListHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ApplicationInsights
106} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
CreateComponentRequest & AddResourceList(ResourceListT &&value)
const Aws::Vector< Aws::String > & GetResourceList() const
CreateComponentRequest & WithResourceList(ResourceListT &&value)
CreateComponentRequest & WithResourceGroupName(ResourceGroupNameT &&value)
CreateComponentRequest & WithComponentName(ComponentNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_APPLICATIONINSIGHTS_API CreateComponentRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector