AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddWorkloadRequest.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/application-insights/model/WorkloadConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ApplicationInsights
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPLICATIONINSIGHTS_API AddWorkloadRequest();
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 "AddWorkload"; }
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); }
47 inline AddWorkloadRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
48 inline AddWorkloadRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
49 inline AddWorkloadRequest& 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 AddWorkloadRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
62 inline AddWorkloadRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
63 inline AddWorkloadRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
65
67
71 inline const WorkloadConfiguration& GetWorkloadConfiguration() const{ return m_workloadConfiguration; }
72 inline bool WorkloadConfigurationHasBeenSet() const { return m_workloadConfigurationHasBeenSet; }
73 inline void SetWorkloadConfiguration(const WorkloadConfiguration& value) { m_workloadConfigurationHasBeenSet = true; m_workloadConfiguration = value; }
74 inline void SetWorkloadConfiguration(WorkloadConfiguration&& value) { m_workloadConfigurationHasBeenSet = true; m_workloadConfiguration = std::move(value); }
78 private:
79
80 Aws::String m_resourceGroupName;
81 bool m_resourceGroupNameHasBeenSet = false;
82
83 Aws::String m_componentName;
84 bool m_componentNameHasBeenSet = false;
85
86 WorkloadConfiguration m_workloadConfiguration;
87 bool m_workloadConfigurationHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ApplicationInsights
92} // namespace Aws
AddWorkloadRequest & WithWorkloadConfiguration(const WorkloadConfiguration &value)
const WorkloadConfiguration & GetWorkloadConfiguration() const
AWS_APPLICATIONINSIGHTS_API AddWorkloadRequest()
void SetWorkloadConfiguration(const WorkloadConfiguration &value)
AddWorkloadRequest & WithComponentName(const char *value)
AddWorkloadRequest & WithResourceGroupName(const char *value)
AddWorkloadRequest & WithWorkloadConfiguration(WorkloadConfiguration &&value)
void SetWorkloadConfiguration(WorkloadConfiguration &&value)
AddWorkloadRequest & WithResourceGroupName(Aws::String &&value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
AddWorkloadRequest & WithComponentName(const Aws::String &value)
AddWorkloadRequest & WithResourceGroupName(const Aws::String &value)
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AddWorkloadRequest & WithComponentName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String