AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AttachmentStateChange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
29 public:
30 AWS_ECS_API AttachmentStateChange() = default;
34
36
39 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
40 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
41 template <typename AttachmentArnT = Aws::String>
42 void SetAttachmentArn(AttachmentArnT&& value) {
43 m_attachmentArnHasBeenSet = true;
44 m_attachmentArn = std::forward<AttachmentArnT>(value);
45 }
46 template <typename AttachmentArnT = Aws::String>
47 AttachmentStateChange& WithAttachmentArn(AttachmentArnT&& value) {
48 SetAttachmentArn(std::forward<AttachmentArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 template <typename StatusT = Aws::String>
60 void SetStatus(StatusT&& value) {
61 m_statusHasBeenSet = true;
62 m_status = std::forward<StatusT>(value);
63 }
64 template <typename StatusT = Aws::String>
66 SetStatus(std::forward<StatusT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_attachmentArn;
72
73 Aws::String m_status;
74 bool m_attachmentArnHasBeenSet = false;
75 bool m_statusHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ECS
80} // namespace Aws
AWS_ECS_API AttachmentStateChange()=default
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AttachmentStateChange & WithStatus(StatusT &&value)
const Aws::String & GetAttachmentArn() const
AttachmentStateChange & WithAttachmentArn(AttachmentArnT &&value)
AWS_ECS_API AttachmentStateChange(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API AttachmentStateChange & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAttachmentArn(AttachmentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue