AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
RegisterAgentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/groundstation/GroundStationRequest.h>
10#include <aws/groundstation/GroundStation_EXPORTS.h>
11#include <aws/groundstation/model/AgentDetails.h>
12#include <aws/groundstation/model/DiscoveryData.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GroundStation {
18namespace Model {
19
23 public:
24 AWS_GROUNDSTATION_API RegisterAgentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RegisterAgent"; }
31
32 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
33
35
38 inline const DiscoveryData& GetDiscoveryData() const { return m_discoveryData; }
39 inline bool DiscoveryDataHasBeenSet() const { return m_discoveryDataHasBeenSet; }
40 template <typename DiscoveryDataT = DiscoveryData>
41 void SetDiscoveryData(DiscoveryDataT&& value) {
42 m_discoveryDataHasBeenSet = true;
43 m_discoveryData = std::forward<DiscoveryDataT>(value);
44 }
45 template <typename DiscoveryDataT = DiscoveryData>
46 RegisterAgentRequest& WithDiscoveryData(DiscoveryDataT&& value) {
47 SetDiscoveryData(std::forward<DiscoveryDataT>(value));
48 return *this;
49 }
51
53
56 inline const AgentDetails& GetAgentDetails() const { return m_agentDetails; }
57 inline bool AgentDetailsHasBeenSet() const { return m_agentDetailsHasBeenSet; }
58 template <typename AgentDetailsT = AgentDetails>
59 void SetAgentDetails(AgentDetailsT&& value) {
60 m_agentDetailsHasBeenSet = true;
61 m_agentDetails = std::forward<AgentDetailsT>(value);
62 }
63 template <typename AgentDetailsT = AgentDetails>
64 RegisterAgentRequest& WithAgentDetails(AgentDetailsT&& value) {
65 SetAgentDetails(std::forward<AgentDetailsT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 RegisterAgentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93 private:
94 DiscoveryData m_discoveryData;
95
96 AgentDetails m_agentDetails;
97
99 bool m_discoveryDataHasBeenSet = false;
100 bool m_agentDetailsHasBeenSet = false;
101 bool m_tagsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GroundStation
106} // namespace Aws
RegisterAgentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterAgentRequest & WithAgentDetails(AgentDetailsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
RegisterAgentRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
RegisterAgentRequest & WithDiscoveryData(DiscoveryDataT &&value)
AWS_GROUNDSTATION_API RegisterAgentRequest()=default
AWS_GROUNDSTATION_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