AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Shard.h
1
6#pragma once
7#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/docdb-elastic/model/Status.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DocDBElastic
23{
24namespace Model
25{
26
32 class Shard
33 {
34 public:
35 AWS_DOCDBELASTIC_API Shard();
36 AWS_DOCDBELASTIC_API Shard(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DOCDBELASTIC_API Shard& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCreateTime() const{ return m_createTime; }
46 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
47 inline void SetCreateTime(const Aws::String& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
48 inline void SetCreateTime(Aws::String&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
49 inline void SetCreateTime(const char* value) { m_createTimeHasBeenSet = true; m_createTime.assign(value); }
50 inline Shard& WithCreateTime(const Aws::String& value) { SetCreateTime(value); return *this;}
51 inline Shard& WithCreateTime(Aws::String&& value) { SetCreateTime(std::move(value)); return *this;}
52 inline Shard& WithCreateTime(const char* value) { SetCreateTime(value); return *this;}
54
56
59 inline const Aws::String& GetShardId() const{ return m_shardId; }
60 inline bool ShardIdHasBeenSet() const { return m_shardIdHasBeenSet; }
61 inline void SetShardId(const Aws::String& value) { m_shardIdHasBeenSet = true; m_shardId = value; }
62 inline void SetShardId(Aws::String&& value) { m_shardIdHasBeenSet = true; m_shardId = std::move(value); }
63 inline void SetShardId(const char* value) { m_shardIdHasBeenSet = true; m_shardId.assign(value); }
64 inline Shard& WithShardId(const Aws::String& value) { SetShardId(value); return *this;}
65 inline Shard& WithShardId(Aws::String&& value) { SetShardId(std::move(value)); return *this;}
66 inline Shard& WithShardId(const char* value) { SetShardId(value); return *this;}
68
70
73 inline const Status& GetStatus() const{ return m_status; }
74 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
75 inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
76 inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
77 inline Shard& WithStatus(const Status& value) { SetStatus(value); return *this;}
78 inline Shard& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_createTime;
83 bool m_createTimeHasBeenSet = false;
84
85 Aws::String m_shardId;
86 bool m_shardIdHasBeenSet = false;
87
88 Status m_status;
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace DocDBElastic
94} // namespace Aws
void SetStatus(Status &&value)
Definition Shard.h:76
void SetCreateTime(Aws::String &&value)
Definition Shard.h:48
Shard & WithCreateTime(const Aws::String &value)
Definition Shard.h:50
bool ShardIdHasBeenSet() const
Definition Shard.h:60
void SetCreateTime(const Aws::String &value)
Definition Shard.h:47
Shard & WithShardId(Aws::String &&value)
Definition Shard.h:65
AWS_DOCDBELASTIC_API Shard()
AWS_DOCDBELASTIC_API Shard(Aws::Utils::Json::JsonView jsonValue)
const Status & GetStatus() const
Definition Shard.h:73
Shard & WithShardId(const char *value)
Definition Shard.h:66
void SetCreateTime(const char *value)
Definition Shard.h:49
void SetStatus(const Status &value)
Definition Shard.h:75
const Aws::String & GetCreateTime() const
Definition Shard.h:45
const Aws::String & GetShardId() const
Definition Shard.h:59
void SetShardId(Aws::String &&value)
Definition Shard.h:62
bool StatusHasBeenSet() const
Definition Shard.h:74
Shard & WithStatus(const Status &value)
Definition Shard.h:77
Shard & WithStatus(Status &&value)
Definition Shard.h:78
Shard & WithShardId(const Aws::String &value)
Definition Shard.h:64
bool CreateTimeHasBeenSet() const
Definition Shard.h:46
Shard & WithCreateTime(Aws::String &&value)
Definition Shard.h:51
void SetShardId(const char *value)
Definition Shard.h:63
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
Shard & WithCreateTime(const char *value)
Definition Shard.h:52
void SetShardId(const Aws::String &value)
Definition Shard.h:61
AWS_DOCDBELASTIC_API Shard & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue