AWS SDK for C++  1.9.157
AWS SDK for C++
Block.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ebs/EBS_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 EBS
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Block();
39 
40 
44  inline int GetBlockIndex() const{ return m_blockIndex; }
45 
49  inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
50 
54  inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
55 
59  inline Block& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
60 
61 
65  inline const Aws::String& GetBlockToken() const{ return m_blockToken; }
66 
70  inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
71 
75  inline void SetBlockToken(const Aws::String& value) { m_blockTokenHasBeenSet = true; m_blockToken = value; }
76 
80  inline void SetBlockToken(Aws::String&& value) { m_blockTokenHasBeenSet = true; m_blockToken = std::move(value); }
81 
85  inline void SetBlockToken(const char* value) { m_blockTokenHasBeenSet = true; m_blockToken.assign(value); }
86 
90  inline Block& WithBlockToken(const Aws::String& value) { SetBlockToken(value); return *this;}
91 
95  inline Block& WithBlockToken(Aws::String&& value) { SetBlockToken(std::move(value)); return *this;}
96 
100  inline Block& WithBlockToken(const char* value) { SetBlockToken(value); return *this;}
101 
102  private:
103 
104  int m_blockIndex;
105  bool m_blockIndexHasBeenSet;
106 
107  Aws::String m_blockToken;
108  bool m_blockTokenHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace EBS
113 } // namespace Aws
Aws::EBS::Model::Block::operator=
Block & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EBS::Model::Block::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EBS::Model::Block::WithBlockToken
Block & WithBlockToken(const Aws::String &value)
Definition: Block.h:90
Aws::EBS::Model::Block::SetBlockToken
void SetBlockToken(const char *value)
Definition: Block.h:85
EBS_EXPORTS.h
Aws::EBS::Model::Block::GetBlockToken
const Aws::String & GetBlockToken() const
Definition: Block.h:65
AWS_EBS_API
#define AWS_EBS_API
Definition: EBS_EXPORTS.h:28
Aws::EBS::Model::Block::WithBlockToken
Block & WithBlockToken(Aws::String &&value)
Definition: Block.h:95
Aws::EBS::Model::Block::GetBlockIndex
int GetBlockIndex() const
Definition: Block.h:44
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::EBS::Model::Block::Block
Block()
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::EBS::Model::Block::SetBlockIndex
void SetBlockIndex(int value)
Definition: Block.h:54
Aws::EBS::Model::Block::BlockTokenHasBeenSet
bool BlockTokenHasBeenSet() const
Definition: Block.h:70
Aws::EBS::Model::Block::BlockIndexHasBeenSet
bool BlockIndexHasBeenSet() const
Definition: Block.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::EBS::Model::Block::Block
Block(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::EBS::Model::Block::SetBlockToken
void SetBlockToken(Aws::String &&value)
Definition: Block.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EBS::Model::Block::WithBlockIndex
Block & WithBlockIndex(int value)
Definition: Block.h:59
Aws::EBS::Model::Block
Definition: Block.h:33
Aws::EBS::Model::Block::SetBlockToken
void SetBlockToken(const Aws::String &value)
Definition: Block.h:75
Aws::EBS::Model::Block::WithBlockToken
Block & WithBlockToken(const char *value)
Definition: Block.h:100