AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateComponentRequest.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 CreateComponentRequest();
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_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 CreateComponentRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
49 inline CreateComponentRequest& 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 CreateComponentRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
62 inline CreateComponentRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
63 inline CreateComponentRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
65
67
70 inline const Aws::Vector<Aws::String>& GetResourceList() const{ return m_resourceList; }
71 inline bool ResourceListHasBeenSet() const { return m_resourceListHasBeenSet; }
72 inline void SetResourceList(const Aws::Vector<Aws::String>& value) { m_resourceListHasBeenSet = true; m_resourceList = value; }
73 inline void SetResourceList(Aws::Vector<Aws::String>&& value) { m_resourceListHasBeenSet = true; m_resourceList = std::move(value); }
75 inline CreateComponentRequest& WithResourceList(Aws::Vector<Aws::String>&& value) { SetResourceList(std::move(value)); return *this;}
76 inline CreateComponentRequest& AddResourceList(const Aws::String& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
77 inline CreateComponentRequest& AddResourceList(Aws::String&& value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(std::move(value)); return *this; }
78 inline CreateComponentRequest& AddResourceList(const char* value) { m_resourceListHasBeenSet = true; m_resourceList.push_back(value); return *this; }
80 private:
81
82 Aws::String m_resourceGroupName;
83 bool m_resourceGroupNameHasBeenSet = false;
84
85 Aws::String m_componentName;
86 bool m_componentNameHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_resourceList;
89 bool m_resourceListHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ApplicationInsights
94} // namespace Aws
CreateComponentRequest & WithResourceList(const Aws::Vector< Aws::String > &value)
CreateComponentRequest & WithComponentName(const char *value)
CreateComponentRequest & WithResourceGroupName(Aws::String &&value)
CreateComponentRequest & WithResourceGroupName(const char *value)
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
CreateComponentRequest & WithResourceGroupName(const Aws::String &value)
CreateComponentRequest & AddResourceList(Aws::String &&value)
CreateComponentRequest & WithComponentName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetResourceList() const
CreateComponentRequest & AddResourceList(const Aws::String &value)
CreateComponentRequest & AddResourceList(const char *value)
CreateComponentRequest & WithResourceList(Aws::Vector< Aws::String > &&value)
CreateComponentRequest & WithComponentName(Aws::String &&value)
void SetResourceList(const Aws::Vector< Aws::String > &value)
void SetResourceList(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
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