AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AgentListEntry.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/AgentStatus.h>
10#include <aws/datasync/model/Platform.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataSync
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_DATASYNC_API AgentListEntry() = default;
40 AWS_DATASYNC_API AgentListEntry(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAgentArn() const { return m_agentArn; }
50 inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
51 template<typename AgentArnT = Aws::String>
52 void SetAgentArn(AgentArnT&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::forward<AgentArnT>(value); }
53 template<typename AgentArnT = Aws::String>
54 AgentListEntry& WithAgentArn(AgentArnT&& value) { SetAgentArn(std::forward<AgentArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
65 template<typename NameT = Aws::String>
66 AgentListEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
68
70
79 inline AgentStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(AgentStatus value) { m_statusHasBeenSet = true; m_status = value; }
82 inline AgentListEntry& WithStatus(AgentStatus value) { SetStatus(value); return *this;}
84
86
89 inline const Platform& GetPlatform() const { return m_platform; }
90 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
91 template<typename PlatformT = Platform>
92 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet = true; m_platform = std::forward<PlatformT>(value); }
93 template<typename PlatformT = Platform>
94 AgentListEntry& WithPlatform(PlatformT&& value) { SetPlatform(std::forward<PlatformT>(value)); return *this;}
96 private:
97
98 Aws::String m_agentArn;
99 bool m_agentArnHasBeenSet = false;
100
101 Aws::String m_name;
102 bool m_nameHasBeenSet = false;
103
105 bool m_statusHasBeenSet = false;
106
107 Platform m_platform;
108 bool m_platformHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace DataSync
113} // 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