AWS SDK for C++  1.8.71
AWS SDK for C++
ConfigureAgentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeGuruProfiler
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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::String SerializePayload() const override;
39 
40 
46  inline const Aws::String& GetFleetInstanceId() const{ return m_fleetInstanceId; }
47 
53  inline bool FleetInstanceIdHasBeenSet() const { return m_fleetInstanceIdHasBeenSet; }
54 
60  inline void SetFleetInstanceId(const Aws::String& value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId = value; }
61 
67  inline void SetFleetInstanceId(Aws::String&& value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId = std::move(value); }
68 
74  inline void SetFleetInstanceId(const char* value) { m_fleetInstanceIdHasBeenSet = true; m_fleetInstanceId.assign(value); }
75 
81  inline ConfigureAgentRequest& WithFleetInstanceId(const Aws::String& value) { SetFleetInstanceId(value); return *this;}
82 
88  inline ConfigureAgentRequest& WithFleetInstanceId(Aws::String&& value) { SetFleetInstanceId(std::move(value)); return *this;}
89 
95  inline ConfigureAgentRequest& WithFleetInstanceId(const char* value) { SetFleetInstanceId(value); return *this;}
96 
97 
116  inline const Aws::Map<MetadataField, Aws::String>& GetMetadata() const{ return m_metadata; }
117 
136  inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
137 
156  inline void SetMetadata(const Aws::Map<MetadataField, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
157 
176  inline void SetMetadata(Aws::Map<MetadataField, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
177 
196  inline ConfigureAgentRequest& WithMetadata(const Aws::Map<MetadataField, Aws::String>& value) { SetMetadata(value); return *this;}
197 
216  inline ConfigureAgentRequest& WithMetadata(Aws::Map<MetadataField, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
217 
236  inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
237 
256  inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
257 
276  inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
277 
296  inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
297 
316  inline ConfigureAgentRequest& AddMetadata(MetadataField&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
317 
336  inline ConfigureAgentRequest& AddMetadata(const MetadataField& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
337 
338 
343  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
344 
349  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
350 
355  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
356 
361  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
362 
367  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
368 
373  inline ConfigureAgentRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
374 
379  inline ConfigureAgentRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
380 
385  inline ConfigureAgentRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
386 
387  private:
388 
389  Aws::String m_fleetInstanceId;
390  bool m_fleetInstanceIdHasBeenSet;
391 
393  bool m_metadataHasBeenSet;
394 
395  Aws::String m_profilingGroupName;
396  bool m_profilingGroupNameHasBeenSet;
397  };
398 
399 } // namespace Model
400 } // namespace CodeGuruProfiler
401 } // namespace Aws
ConfigureAgentRequest & AddMetadata(const MetadataField &key, const Aws::String &value)
ConfigureAgentRequest & WithProfilingGroupName(Aws::String &&value)
ConfigureAgentRequest & WithFleetInstanceId(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
void SetMetadata(const Aws::Map< MetadataField, Aws::String > &value)
ConfigureAgentRequest & WithMetadata(Aws::Map< MetadataField, Aws::String > &&value)
ConfigureAgentRequest & WithMetadata(const Aws::Map< MetadataField, Aws::String > &value)
ConfigureAgentRequest & AddMetadata(MetadataField &&key, const char *value)
ConfigureAgentRequest & AddMetadata(MetadataField &&key, Aws::String &&value)
ConfigureAgentRequest & AddMetadata(MetadataField &&key, const Aws::String &value)
void SetMetadata(Aws::Map< MetadataField, Aws::String > &&value)
ConfigureAgentRequest & AddMetadata(const MetadataField &key, Aws::String &&value)
ConfigureAgentRequest & WithProfilingGroupName(const Aws::String &value)
#define AWS_CODEGURUPROFILER_API
ConfigureAgentRequest & WithFleetInstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Map< MetadataField, Aws::String > & GetMetadata() const
ConfigureAgentRequest & AddMetadata(const MetadataField &key, const char *value)
virtual const char * GetServiceRequestName() const override
ConfigureAgentRequest & WithFleetInstanceId(Aws::String &&value)
ConfigureAgentRequest & WithProfilingGroupName(const char *value)