AWS SDK for C++  1.9.158
AWS SDK for C++
AgentListEntry.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DataSync
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
48 
52  inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
53 
57  inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
58 
62  inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
63 
67  inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
68 
72  inline AgentListEntry& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
73 
77  inline AgentListEntry& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
78 
82  inline AgentListEntry& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
83 
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 
98  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
104 
108  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
109 
113  inline AgentListEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
114 
118  inline AgentListEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
119 
123  inline AgentListEntry& WithName(const char* value) { SetName(value); return *this;}
124 
125 
129  inline const AgentStatus& GetStatus() const{ return m_status; }
130 
134  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 
139  inline void SetStatus(const AgentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
140 
144  inline void SetStatus(AgentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
145 
149  inline AgentListEntry& WithStatus(const AgentStatus& value) { SetStatus(value); return *this;}
150 
154  inline AgentListEntry& WithStatus(AgentStatus&& value) { SetStatus(std::move(value)); return *this;}
155 
156  private:
157 
158  Aws::String m_agentArn;
159  bool m_agentArnHasBeenSet;
160 
161  Aws::String m_name;
162  bool m_nameHasBeenSet;
163 
164  AgentStatus m_status;
165  bool m_statusHasBeenSet;
166  };
167 
168 } // namespace Model
169 } // namespace DataSync
170 } // namespace Aws
Aws::DataSync::Model::AgentListEntry::WithStatus
AgentListEntry & WithStatus(const AgentStatus &value)
Definition: AgentListEntry.h:149
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::DataSync::Model::AgentListEntry::WithAgentArn
AgentListEntry & WithAgentArn(const char *value)
Definition: AgentListEntry.h:82
Aws::DataSync::Model::AgentListEntry::AgentListEntry
AgentListEntry(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::AgentListEntry
Definition: AgentListEntry.h:36
Aws::DataSync::Model::AgentListEntry::GetAgentArn
const Aws::String & GetAgentArn() const
Definition: AgentListEntry.h:47
Aws::DataSync::Model::AgentListEntry::SetAgentArn
void SetAgentArn(Aws::String &&value)
Definition: AgentListEntry.h:62
Aws::DataSync::Model::AgentListEntry::SetStatus
void SetStatus(AgentStatus &&value)
Definition: AgentListEntry.h:144
AgentStatus.h
Aws::DataSync::Model::AgentListEntry::WithStatus
AgentListEntry & WithStatus(AgentStatus &&value)
Definition: AgentListEntry.h:154
Aws::DataSync::Model::AgentListEntry::GetName
const Aws::String & GetName() const
Definition: AgentListEntry.h:88
Aws::DataSync::Model::AgentListEntry::WithName
AgentListEntry & WithName(Aws::String &&value)
Definition: AgentListEntry.h:118
Aws::DataSync::Model::AgentListEntry::SetName
void SetName(Aws::String &&value)
Definition: AgentListEntry.h:103
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DataSync::Model::AgentListEntry::WithAgentArn
AgentListEntry & WithAgentArn(Aws::String &&value)
Definition: AgentListEntry.h:77
DataSync_EXPORTS.h
Aws::DataSync::Model::AgentListEntry::WithName
AgentListEntry & WithName(const Aws::String &value)
Definition: AgentListEntry.h:113
Aws::DataSync::Model::AgentListEntry::SetAgentArn
void SetAgentArn(const char *value)
Definition: AgentListEntry.h:67
Aws::DataSync::Model::AgentListEntry::AgentArnHasBeenSet
bool AgentArnHasBeenSet() const
Definition: AgentListEntry.h:52
Aws::DataSync::Model::AgentListEntry::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AgentListEntry.h:93
Aws::DataSync::Model::AgentListEntry::GetStatus
const AgentStatus & GetStatus() const
Definition: AgentListEntry.h:129
Aws::DataSync::Model::AgentListEntry::WithName
AgentListEntry & WithName(const char *value)
Definition: AgentListEntry.h:123
Aws::DataSync::Model::AgentListEntry::AgentListEntry
AgentListEntry()
Aws::DataSync::Model::AgentStatus
AgentStatus
Definition: AgentStatus.h:17
Aws::DataSync::Model::AgentListEntry::WithAgentArn
AgentListEntry & WithAgentArn(const Aws::String &value)
Definition: AgentListEntry.h:72
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DataSync::Model::AgentListEntry::SetStatus
void SetStatus(const AgentStatus &value)
Definition: AgentListEntry.h:139
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::AgentListEntry::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DataSync::Model::AgentListEntry::SetName
void SetName(const Aws::String &value)
Definition: AgentListEntry.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::AgentListEntry::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AgentListEntry.h:134
Aws::DataSync::Model::AgentListEntry::SetName
void SetName(const char *value)
Definition: AgentListEntry.h:108
Aws::DataSync::Model::AgentListEntry::operator=
AgentListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DataSync::Model::AgentListEntry::SetAgentArn
void SetAgentArn(const Aws::String &value)
Definition: AgentListEntry.h:57