AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateComponentRequest.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/application-insights/ApplicationInsightsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ApplicationInsights
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPLICATIONINSIGHTS_API UpdateComponentRequest() = default;
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_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override;
34
35 AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetResourceGroupName() const { return m_resourceGroupName; }
43 inline bool ResourceGroupNameHasBeenSet() const { return m_resourceGroupNameHasBeenSet; }
44 template<typename ResourceGroupNameT = Aws::String>
45 void SetResourceGroupName(ResourceGroupNameT&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::forward<ResourceGroupNameT>(value); }
46 template<typename ResourceGroupNameT = Aws::String>
47 UpdateComponentRequest& WithResourceGroupName(ResourceGroupNameT&& value) { SetResourceGroupName(std::forward<ResourceGroupNameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetComponentName() const { return m_componentName; }
55 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
56 template<typename ComponentNameT = Aws::String>
57 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
58 template<typename ComponentNameT = Aws::String>
59 UpdateComponentRequest& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetNewComponentName() const { return m_newComponentName; }
67 inline bool NewComponentNameHasBeenSet() const { return m_newComponentNameHasBeenSet; }
68 template<typename NewComponentNameT = Aws::String>
69 void SetNewComponentName(NewComponentNameT&& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = std::forward<NewComponentNameT>(value); }
70 template<typename NewComponentNameT = Aws::String>
71 UpdateComponentRequest& WithNewComponentName(NewComponentNameT&& value) { SetNewComponentName(std::forward<NewComponentNameT>(value)); return *this;}
73
75
78 inline const Aws::Vector<Aws::String>& GetResourceList() const { return m_resourceList; }
79 inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
80 template<typename ResourceListT = Aws::Vector<Aws::String>>
81 void SetResourceList(ResourceListT&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::forward<ResourceListT>(value); }
82 template<typename ResourceListT = Aws::Vector<Aws::String>>
83 UpdateComponentRequest& WithResourceList(ResourceListT&& value) { SetResourceList(std::forward<ResourceListT>(value)); return *this;}
84 template<typename ResourceListT = Aws::String>
85 UpdateComponentRequest& AddResourceList(ResourceListT&& value) { m_resourceListHasBeenSet = true; m_resourceList.emplace_back(std::forward<ResourceListT>(value)); return *this; }
87 private:
88
89 Aws::String m_resourceGroupName;
90 bool m_resourceGroupNameHasBeenSet = false;
91
92 Aws::String m_componentName;
93 bool m_componentNameHasBeenSet = false;
94
95 Aws::String m_newComponentName;
96 bool m_newComponentNameHasBeenSet = false;
97
98 Aws::Vector<Aws::String> m_resourceList;
99 bool m_resourceListHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ApplicationInsights
104} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
UpdateComponentRequest & WithNewComponentName(NewComponentNameT &&value)
UpdateComponentRequest & AddResourceList(ResourceListT &&value)
UpdateComponentRequest & WithComponentName(ComponentNameT &&value)
const Aws::Vector< Aws::String > & GetResourceList() const
UpdateComponentRequest & WithResourceGroupName(ResourceGroupNameT &&value)
virtual const char * GetServiceRequestName() const override
UpdateComponentRequest & WithResourceList(ResourceListT &&value)
AWS_APPLICATIONINSIGHTS_API UpdateComponentRequest()=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