AWS SDK for C++  1.9.159
AWS SDK for C++
AttachmentStateChange.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ECS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetAttachmentArn() const{ return m_attachmentArn; }
45 
49  inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
50 
54  inline void SetAttachmentArn(const Aws::String& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = value; }
55 
59  inline void SetAttachmentArn(Aws::String&& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = std::move(value); }
60 
64  inline void SetAttachmentArn(const char* value) { m_attachmentArnHasBeenSet = true; m_attachmentArn.assign(value); }
65 
69  inline AttachmentStateChange& WithAttachmentArn(const Aws::String& value) { SetAttachmentArn(value); return *this;}
70 
74  inline AttachmentStateChange& WithAttachmentArn(Aws::String&& value) { SetAttachmentArn(std::move(value)); return *this;}
75 
79  inline AttachmentStateChange& WithAttachmentArn(const char* value) { SetAttachmentArn(value); return *this;}
80 
81 
85  inline const Aws::String& GetStatus() const{ return m_status; }
86 
90  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
91 
95  inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
96 
100  inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
101 
105  inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
106 
110  inline AttachmentStateChange& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
111 
115  inline AttachmentStateChange& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
116 
120  inline AttachmentStateChange& WithStatus(const char* value) { SetStatus(value); return *this;}
121 
122  private:
123 
124  Aws::String m_attachmentArn;
125  bool m_attachmentArnHasBeenSet;
126 
127  Aws::String m_status;
128  bool m_statusHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace ECS
133 } // namespace Aws
Aws::ECS::Model::AttachmentStateChange::GetAttachmentArn
const Aws::String & GetAttachmentArn() const
Definition: AttachmentStateChange.h:44
Aws::ECS::Model::AttachmentStateChange::GetStatus
const Aws::String & GetStatus() const
Definition: AttachmentStateChange.h:85
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::AttachmentStateChange::WithAttachmentArn
AttachmentStateChange & WithAttachmentArn(Aws::String &&value)
Definition: AttachmentStateChange.h:74
Aws::ECS::Model::AttachmentStateChange
Definition: AttachmentStateChange.h:33
Aws::ECS::Model::AttachmentStateChange::WithStatus
AttachmentStateChange & WithStatus(const Aws::String &value)
Definition: AttachmentStateChange.h:110
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::AttachmentStateChange::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECS::Model::AttachmentStateChange::AttachmentArnHasBeenSet
bool AttachmentArnHasBeenSet() const
Definition: AttachmentStateChange.h:49
Aws::ECS::Model::AttachmentStateChange::SetAttachmentArn
void SetAttachmentArn(const Aws::String &value)
Definition: AttachmentStateChange.h:54
Aws::ECS::Model::AttachmentStateChange::WithAttachmentArn
AttachmentStateChange & WithAttachmentArn(const char *value)
Definition: AttachmentStateChange.h:79
Aws::ECS::Model::AttachmentStateChange::WithStatus
AttachmentStateChange & WithStatus(const char *value)
Definition: AttachmentStateChange.h:120
Aws::ECS::Model::AttachmentStateChange::operator=
AttachmentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECS::Model::AttachmentStateChange::SetStatus
void SetStatus(Aws::String &&value)
Definition: AttachmentStateChange.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ECS::Model::AttachmentStateChange::AttachmentStateChange
AttachmentStateChange(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECS::Model::AttachmentStateChange::WithStatus
AttachmentStateChange & WithStatus(Aws::String &&value)
Definition: AttachmentStateChange.h:115
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::AttachmentStateChange::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: AttachmentStateChange.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::AttachmentStateChange::SetStatus
void SetStatus(const char *value)
Definition: AttachmentStateChange.h:105
Aws::ECS::Model::AttachmentStateChange::WithAttachmentArn
AttachmentStateChange & WithAttachmentArn(const Aws::String &value)
Definition: AttachmentStateChange.h:69
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::AttachmentStateChange::SetAttachmentArn
void SetAttachmentArn(Aws::String &&value)
Definition: AttachmentStateChange.h:59
Aws::ECS::Model::AttachmentStateChange::SetStatus
void SetStatus(const Aws::String &value)
Definition: AttachmentStateChange.h:95
Aws::ECS::Model::AttachmentStateChange::AttachmentStateChange
AttachmentStateChange()
ECS_EXPORTS.h
Aws::ECS::Model::AttachmentStateChange::SetAttachmentArn
void SetAttachmentArn(const char *value)
Definition: AttachmentStateChange.h:64