AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFleetInstanceId(const Aws::String& value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId = value; }
50 inline void SetFleetInstanceId(Aws::String&& value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId = std::move(value); }
51 inline void SetFleetInstanceId(const char* value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId.assign(value); }
52 inline ConfigureAgentRequest& WithFleetInstanceId(const Aws::String& value) { SetFleetInstanceId(value); return *this;}
53 inline ConfigureAgentRequest& WithFleetInstanceId(Aws::String&& value) { SetFleetInstanceId(std::move(value)); return *this;}
54 inline ConfigureAgentRequest& WithFleetInstanceId(const char* value) { SetFleetInstanceId(value); return *this;}
56
58
76 inline const Aws::Map<MetadataField, Aws::String>& GetMetadata() const{ return m_metadata; }
77 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
78 inline void SetMetadata(const Aws::Map<MetadataField, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
79 inline void SetMetadata(Aws::Map<MetadataField, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
81 inline ConfigureAgentRequest& WithMetadata(Aws::Map<MetadataField, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
82 inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
83 inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
84 inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
85 inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
86 inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
87 inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
89
91
95 inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
96 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
97 inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
98 inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
99 inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
101 inline ConfigureAgentRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
102 inline ConfigureAgentRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
104 private:
105
106 Aws::String m_fleetInstanceId;
107 bool m_fleetInstanceIdHasBeenSet = false;
108
110 bool m_metadataHasBeenSet = false;
111
112 Aws::String m_profilingGroupName;
113 bool m_profilingGroupNameHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace CodeGuruProfiler
118} // namespace Aws
ConfigureAgentRequest & AddMetadata(MetadataField &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ConfigureAgentRequest & WithFleetInstanceId(Aws::String &&value)
ConfigureAgentRequest & AddMetadata(MetadataField &&key, const Aws::String &value)
ConfigureAgentRequest & AddMetadata(MetadataField &&key, const char *value)
ConfigureAgentRequest & WithProfilingGroupName(const Aws::String &value)
const Aws::Map< MetadataField, Aws::String > & GetMetadata() const
ConfigureAgentRequest & WithFleetInstanceId(const Aws::String &value)
ConfigureAgentRequest & AddMetadata(const MetadataField &key, const Aws::String &value)
ConfigureAgentRequest & WithProfilingGroupName(Aws::String &&value)
ConfigureAgentRequest & WithFleetInstanceId(const char *value)
void SetMetadata(const Aws::Map< MetadataField, Aws::String > &value)
ConfigureAgentRequest & WithMetadata(Aws::Map< MetadataField, Aws::String > &&value)
void SetMetadata(Aws::Map< MetadataField, Aws::String > &&value)
ConfigureAgentRequest & WithProfilingGroupName(const char *value)
ConfigureAgentRequest & WithMetadata(const Aws::Map< MetadataField, Aws::String > &value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
ConfigureAgentRequest & AddMetadata(const MetadataField &key, Aws::String &&value)
ConfigureAgentRequest & AddMetadata(const MetadataField &key, const char *value)
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