AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceGroupName(const Aws::String& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = value; }
45 inline void SetResourceGroupName(Aws::String&& value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName = std::move(value); }
46 inline void SetResourceGroupName(const char* value) { m_resourceGroupNameHasBeenSet = true; m_resourceGroupName.assign(value); }
48 inline UpdateComponentRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
49 inline UpdateComponentRequest& WithResourceGroupName(const char* value) { SetResourceGroupName(value); return *this;}
51
53
56 inline const Aws::String& GetComponentName() const{ return m_componentName; }
57 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
58 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
59 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
60 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
61 inline UpdateComponentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
62 inline UpdateComponentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
63 inline UpdateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
65
67
70 inline const Aws::String& GetNewComponentName() const{ return m_newComponentName; }
71 inline bool NewComponentNameHasBeenSet() const { return m_newComponentNameHasBeenSet; }
72 inline void SetNewComponentName(const Aws::String& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = value; }
73 inline void SetNewComponentName(Aws::String&& value) { m_newComponentNameHasBeenSet = true; m_newComponentName = std::move(value); }
74 inline void SetNewComponentName(const char* value) { m_newComponentNameHasBeenSet = true; m_newComponentName.assign(value); }
75 inline UpdateComponentRequest& WithNewComponentName(const Aws::String& value) { SetNewComponentName(value); return *this;}
76 inline UpdateComponentRequest& WithNewComponentName(Aws::String&& value) { SetNewComponentName(std::move(value)); return *this;}
77 inline UpdateComponentRequest& WithNewComponentName(const char* value) { SetNewComponentName(value); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetResourceList() const{ return m_resourceList; }
85 inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
86 inline void SetResourceList(const Aws::Vector<Aws::String>& value) { m_resourceListHasBeenSet = true; m_resourceList = value; }
87 inline void SetResourceList(Aws::Vector<Aws::String>&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); }
89 inline UpdateComponentRequest& WithResourceList(Aws::Vector<Aws::String>&& value) { SetResourceList(std::move(value)); return *this;}
90 inline UpdateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
91 inline UpdateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; }
92 inline UpdateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
94 private:
95
96 Aws::String m_resourceGroupName;
97 bool m_resourceGroupNameHasBeenSet = false;
98
99 Aws::String m_componentName;
100 bool m_componentNameHasBeenSet = false;
101
102 Aws::String m_newComponentName;
103 bool m_newComponentNameHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_resourceList;
106 bool m_resourceListHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ApplicationInsights
111} // namespace Aws
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateComponentRequest & WithResourceGroupName(const Aws::String &value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
UpdateComponentRequest & WithNewComponentName(const char *value)
UpdateComponentRequest & WithResourceGroupName(const char *value)
UpdateComponentRequest & WithNewComponentName(const Aws::String &value)
void SetResourceList(Aws::Vector< Aws::String > &&value)
void SetResourceList(const Aws::Vector< Aws::String > &value)
UpdateComponentRequest & AddResourceList(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourceList() const
UpdateComponentRequest & WithNewComponentName(Aws::String &&value)
UpdateComponentRequest & WithComponentName(Aws::String &&value)
UpdateComponentRequest & AddResourceList(const char *value)
UpdateComponentRequest & AddResourceList(const Aws::String &value)
UpdateComponentRequest & WithResourceList(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
UpdateComponentRequest & WithResourceList(Aws::Vector< Aws::String > &&value)
UpdateComponentRequest & WithComponentName(const char *value)
UpdateComponentRequest & WithComponentName(const Aws::String &value)
UpdateComponentRequest & WithResourceGroupName(Aws::String &&value)
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