AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Block.h
1
6#pragma once
7#include <aws/ebs/EBS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EBS
22{
23namespace Model
24{
25
32 class Block
33 {
34 public:
35 AWS_EBS_API Block();
36 AWS_EBS_API Block(Aws::Utils::Json::JsonView jsonValue);
39
40
42
45 inline int GetBlockIndex() const{ return m_blockIndex; }
46 inline bool BlockIndexHasBeenSet() const { return m_blockIndexHasBeenSet; }
47 inline void SetBlockIndex(int value) { m_blockIndexHasBeenSet = true; m_blockIndex = value; }
48 inline Block& WithBlockIndex(int value) { SetBlockIndex(value); return *this;}
50
52
55 inline const Aws::String& GetBlockToken() const{ return m_blockToken; }
56 inline bool BlockTokenHasBeenSet() const { return m_blockTokenHasBeenSet; }
57 inline void SetBlockToken(const Aws::String& value) { m_blockTokenHasBeenSet = true; m_blockToken = value; }
58 inline void SetBlockToken(Aws::String&& value) { m_blockTokenHasBeenSet = true; m_blockToken = std::move(value); }
59 inline void SetBlockToken(const char* value) { m_blockTokenHasBeenSet = true; m_blockToken.assign(value); }
60 inline Block& WithBlockToken(const Aws::String& value) { SetBlockToken(value); return *this;}
61 inline Block& WithBlockToken(Aws::String&& value) { SetBlockToken(std::move(value)); return *this;}
62 inline Block& WithBlockToken(const char* value) { SetBlockToken(value); return *this;}
64 private:
65
66 int m_blockIndex;
67 bool m_blockIndexHasBeenSet = false;
68
69 Aws::String m_blockToken;
70 bool m_blockTokenHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EBS
75} // namespace Aws
int GetBlockIndex() const
Definition Block.h:45
bool BlockTokenHasBeenSet() const
Definition Block.h:56
void SetBlockToken(const char *value)
Definition Block.h:59
Block & WithBlockToken(const char *value)
Definition Block.h:62
Block & WithBlockIndex(int value)
Definition Block.h:48
Block & WithBlockToken(const Aws::String &value)
Definition Block.h:60
const Aws::String & GetBlockToken() const
Definition Block.h:55
void SetBlockIndex(int value)
Definition Block.h:47
AWS_EBS_API Block(Aws::Utils::Json::JsonView jsonValue)
AWS_EBS_API Aws::Utils::Json::JsonValue Jsonize() const
Block & WithBlockToken(Aws::String &&value)
Definition Block.h:61
void SetBlockToken(const Aws::String &value)
Definition Block.h:57
void SetBlockToken(Aws::String &&value)
Definition Block.h:58
bool BlockIndexHasBeenSet() const
Definition Block.h:46
AWS_EBS_API Block & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue