AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkloadRequest.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 UpdateWorkloadRequest();
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 "UpdateWorkload"; }
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 UpdateWorkloadRequest& WithResourceGroupName(const Aws::String& value) { SetResourceGroupName(value); return *this;}
48 inline UpdateWorkloadRequest& WithResourceGroupName(Aws::String&& value) { SetResourceGroupName(std::move(value)); return *this;}
49 inline UpdateWorkloadRequest& 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 UpdateWorkloadRequest& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
62 inline UpdateWorkloadRequest& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
63 inline UpdateWorkloadRequest& WithComponentName(const char* value) { SetComponentName(value); return *this;}
65
67
70 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
71 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
72 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
73 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
74 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
75 inline UpdateWorkloadRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
76 inline UpdateWorkloadRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
77 inline UpdateWorkloadRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
79
81
85 inline const WorkloadConfiguration& GetWorkloadConfiguration() const{ return m_workloadConfiguration; }
86 inline bool WorkloadConfigurationHasBeenSet() const { return m_workloadConfigurationHasBeenSet; }
87 inline void SetWorkloadConfiguration(const WorkloadConfiguration& value) { m_workloadConfigurationHasBeenSet = true; m_workloadConfiguration = value; }
88 inline void SetWorkloadConfiguration(WorkloadConfiguration&& value) { m_workloadConfigurationHasBeenSet = true; m_workloadConfiguration = std::move(value); }
92 private:
93
94 Aws::String m_resourceGroupName;
95 bool m_resourceGroupNameHasBeenSet = false;
96
97 Aws::String m_componentName;
98 bool m_componentNameHasBeenSet = false;
99
100 Aws::String m_workloadId;
101 bool m_workloadIdHasBeenSet = false;
102
103 WorkloadConfiguration m_workloadConfiguration;
104 bool m_workloadConfigurationHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ApplicationInsights
109} // namespace Aws
UpdateWorkloadRequest & WithWorkloadId(const char *value)
AWS_APPLICATIONINSIGHTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
UpdateWorkloadRequest & WithResourceGroupName(const char *value)
void SetWorkloadConfiguration(const WorkloadConfiguration &value)
UpdateWorkloadRequest & WithResourceGroupName(const Aws::String &value)
UpdateWorkloadRequest & WithComponentName(const Aws::String &value)
const WorkloadConfiguration & GetWorkloadConfiguration() const
UpdateWorkloadRequest & WithWorkloadConfiguration(WorkloadConfiguration &&value)
AWS_APPLICATIONINSIGHTS_API Aws::String SerializePayload() const override
UpdateWorkloadRequest & WithWorkloadConfiguration(const WorkloadConfiguration &value)
UpdateWorkloadRequest & WithComponentName(Aws::String &&value)
UpdateWorkloadRequest & WithResourceGroupName(Aws::String &&value)
UpdateWorkloadRequest & WithComponentName(const char *value)
UpdateWorkloadRequest & WithWorkloadId(const Aws::String &value)
void SetWorkloadConfiguration(WorkloadConfiguration &&value)
UpdateWorkloadRequest & WithWorkloadId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String