AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AgentListEntry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9#include <aws/datasync/model/AgentStatus.h>
10#include <aws/datasync/model/Platform.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataSync {
22namespace Model {
23
33 public:
34 AWS_DATASYNC_API AgentListEntry() = default;
35 AWS_DATASYNC_API AgentListEntry(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
44 inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
45 template <typename AgentArnT = Aws::String>
46 void SetAgentArn(AgentArnT&& value) {
47 m_agentArnHasBeenSet = true;
48 m_agentArn = std::forward<AgentArnT>(value);
49 }
50 template <typename AgentArnT = Aws::String>
51 AgentListEntry& WithAgentArn(AgentArnT&& value) {
52 SetAgentArn(std::forward<AgentArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 AgentListEntry& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
85 inline AgentStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(AgentStatus value) {
88 m_statusHasBeenSet = true;
89 m_status = value;
90 }
92 SetStatus(value);
93 return *this;
94 }
96
98
101 inline const Platform& GetPlatform() const { return m_platform; }
102 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
103 template <typename PlatformT = Platform>
104 void SetPlatform(PlatformT&& value) {
105 m_platformHasBeenSet = true;
106 m_platform = std::forward<PlatformT>(value);
107 }
108 template <typename PlatformT = Platform>
109 AgentListEntry& WithPlatform(PlatformT&& value) {
110 SetPlatform(std::forward<PlatformT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_agentArn;
116
117 Aws::String m_name;
118
120
121 Platform m_platform;
122 bool m_agentArnHasBeenSet = false;
123 bool m_nameHasBeenSet = false;
124 bool m_statusHasBeenSet = false;
125 bool m_platformHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace DataSync
130} // namespace Aws
bool StatusHasBeenSet() const
AgentListEntry & WithName(NameT &&value)
AgentListEntry & WithAgentArn(AgentArnT &&value)
bool PlatformHasBeenSet() const
void SetStatus(AgentStatus value)
AWS_DATASYNC_API AgentListEntry(Aws::Utils::Json::JsonView jsonValue)
void SetPlatform(PlatformT &&value)
AgentListEntry & WithPlatform(PlatformT &&value)
AWS_DATASYNC_API AgentListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API AgentListEntry()=default
AgentStatus GetStatus() const
AgentListEntry & WithStatus(AgentStatus value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAgentArn(AgentArnT &&value)
const Platform & GetPlatform() const
void SetName(NameT &&value)
const Aws::String & GetName() const
bool AgentArnHasBeenSet() const
const Aws::String & GetAgentArn() const
bool NameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue