AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
ConfigureAgentRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/codeguruprofiler/model/MetadataField.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeGuruProfiler {
17namespace Model {
18
26 public:
27 AWS_CODEGURUPROFILER_API ConfigureAgentRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ConfigureAgent"; }
34
35 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
36
38
43 inline const Aws::String& GetFleetInstanceId() const { return m_fleetInstanceId; }
44 inline bool FleetInstanceIdHasBeenSet() const { return m_fleetInstanceIdHasBeenSet; }
45 template <typename FleetInstanceIdT = Aws::String>
46 void SetFleetInstanceId(FleetInstanceIdT&& value) {
47 m_fleetInstanceIdHasBeenSet = true;
48 m_fleetInstanceId = std::forward<FleetInstanceIdT>(value);
49 }
50 template <typename FleetInstanceIdT = Aws::String>
51 ConfigureAgentRequest& WithFleetInstanceId(FleetInstanceIdT&& value) {
52 SetFleetInstanceId(std::forward<FleetInstanceIdT>(value));
53 return *this;
54 }
56
58
76 inline const Aws::Map<MetadataField, Aws::String>& GetMetadata() const { return m_metadata; }
77 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
78 template <typename MetadataT = Aws::Map<MetadataField, Aws::String>>
79 void SetMetadata(MetadataT&& value) {
80 m_metadataHasBeenSet = true;
81 m_metadata = std::forward<MetadataT>(value);
82 }
83 template <typename MetadataT = Aws::Map<MetadataField, Aws::String>>
84 ConfigureAgentRequest& WithMetadata(MetadataT&& value) {
85 SetMetadata(std::forward<MetadataT>(value));
86 return *this;
87 }
89 m_metadataHasBeenSet = true;
90 m_metadata.emplace(key, value);
91 return *this;
92 }
94
96
100 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
101 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
102 template <typename ProfilingGroupNameT = Aws::String>
103 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
104 m_profilingGroupNameHasBeenSet = true;
105 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
106 }
107 template <typename ProfilingGroupNameT = Aws::String>
108 ConfigureAgentRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) {
109 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_fleetInstanceId;
115
117
118 Aws::String m_profilingGroupName;
119 bool m_fleetInstanceIdHasBeenSet = false;
120 bool m_metadataHasBeenSet = false;
121 bool m_profilingGroupNameHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CodeGuruProfiler
126} // namespace Aws
ConfigureAgentRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API ConfigureAgentRequest()=default
virtual const char * GetServiceRequestName() const override
ConfigureAgentRequest & WithMetadata(MetadataT &&value)
const Aws::Map< MetadataField, Aws::String > & GetMetadata() const
ConfigureAgentRequest & WithFleetInstanceId(FleetInstanceIdT &&value)
ConfigureAgentRequest & AddMetadata(MetadataField key, Aws::String value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String