AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ConfigureAgentRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/codeguruprofiler/model/MetadataField.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeGuruProfiler
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEGURUPROFILER_API ConfigureAgentRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ConfigureAgent"; }
37
38 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetFleetInstanceId() const { return m_fleetInstanceId; }
48 inline bool FleetInstanceIdHasBeenSet() const { return m_fleetInstanceIdHasBeenSet; }
49 template<typename FleetInstanceIdT = Aws::String>
50 void SetFleetInstanceId(FleetInstanceIdT&& value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId = std::forward<FleetInstanceIdT>(value); }
51 template<typename FleetInstanceIdT = Aws::String>
52 ConfigureAgentRequest& WithFleetInstanceId(FleetInstanceIdT&& value) { SetFleetInstanceId(std::forward<FleetInstanceIdT>(value)); return *this;}
54
56
74 inline const Aws::Map<MetadataField, Aws::String>& GetMetadata() const { return m_metadata; }
75 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
76 template<typename MetadataT = Aws::Map<MetadataField, Aws::String>>
77 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
78 template<typename MetadataT = Aws::Map<MetadataField, Aws::String>>
79 ConfigureAgentRequest& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
81 m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this;
82 }
84
86
90 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
91 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
92 template<typename ProfilingGroupNameT = Aws::String>
93 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
94 template<typename ProfilingGroupNameT = Aws::String>
95 ConfigureAgentRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
97 private:
98
99 Aws::String m_fleetInstanceId;
100 bool m_fleetInstanceIdHasBeenSet = false;
101
103 bool m_metadataHasBeenSet = false;
104
105 Aws::String m_profilingGroupName;
106 bool m_profilingGroupNameHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CodeGuruProfiler
111} // 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