AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
ClusterListEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/snowball/Snowball_EXPORTS.h>
10#include <aws/snowball/model/ClusterState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Snowball {
22namespace Model {
23
31 public:
32 AWS_SNOWBALL_API ClusterListEntry() = default;
33 AWS_SNOWBALL_API ClusterListEntry(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetClusterId() const { return m_clusterId; }
43 inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; }
44 template <typename ClusterIdT = Aws::String>
45 void SetClusterId(ClusterIdT&& value) {
46 m_clusterIdHasBeenSet = true;
47 m_clusterId = std::forward<ClusterIdT>(value);
48 }
49 template <typename ClusterIdT = Aws::String>
50 ClusterListEntry& WithClusterId(ClusterIdT&& value) {
51 SetClusterId(std::forward<ClusterIdT>(value));
52 return *this;
53 }
55
57
61 inline ClusterState GetClusterState() const { return m_clusterState; }
62 inline bool ClusterStateHasBeenSet() const { return m_clusterStateHasBeenSet; }
63 inline void SetClusterState(ClusterState value) {
64 m_clusterStateHasBeenSet = true;
65 m_clusterState = value;
66 }
68 SetClusterState(value);
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
78 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
79 template <typename CreationDateT = Aws::Utils::DateTime>
80 void SetCreationDate(CreationDateT&& value) {
81 m_creationDateHasBeenSet = true;
82 m_creationDate = std::forward<CreationDateT>(value);
83 }
84 template <typename CreationDateT = Aws::Utils::DateTime>
85 ClusterListEntry& WithCreationDate(CreationDateT&& value) {
86 SetCreationDate(std::forward<CreationDateT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template <typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) {
100 m_descriptionHasBeenSet = true;
101 m_description = std::forward<DescriptionT>(value);
102 }
103 template <typename DescriptionT = Aws::String>
104 ClusterListEntry& WithDescription(DescriptionT&& value) {
105 SetDescription(std::forward<DescriptionT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_clusterId;
111 bool m_clusterIdHasBeenSet = false;
112
113 ClusterState m_clusterState{ClusterState::NOT_SET};
114 bool m_clusterStateHasBeenSet = false;
115
116 Aws::Utils::DateTime m_creationDate{};
117 bool m_creationDateHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Snowball
125} // namespace Aws
ClusterState GetClusterState() const
void SetClusterId(ClusterIdT &&value)
ClusterListEntry & WithClusterState(ClusterState value)
bool CreationDateHasBeenSet() const
AWS_SNOWBALL_API ClusterListEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
ClusterListEntry & WithCreationDate(CreationDateT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetClusterId() const
void SetClusterState(ClusterState value)
ClusterListEntry & WithClusterId(ClusterIdT &&value)
bool ClusterStateHasBeenSet() const
const Aws::Utils::DateTime & GetCreationDate() const
bool DescriptionHasBeenSet() const
bool ClusterIdHasBeenSet() const
AWS_SNOWBALL_API ClusterListEntry()=default
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterListEntry & WithDescription(DescriptionT &&value)
AWS_SNOWBALL_API ClusterListEntry(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue