AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NodeConfiguration.h
1
6#pragma once
7#include <aws/managedblockchain/ManagedBlockchain_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/managedblockchain/model/NodeLogPublishingConfiguration.h>
10#include <aws/managedblockchain/model/StateDBType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ManagedBlockchain
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration();
37 AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
47 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
48 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
49 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
50 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
51 inline NodeConfiguration& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
52 inline NodeConfiguration& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
53 inline NodeConfiguration& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
55
57
61 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
62 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
63 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
64 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
65 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
66 inline NodeConfiguration& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
67 inline NodeConfiguration& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
68 inline NodeConfiguration& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
70
72
76 inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const{ return m_logPublishingConfiguration; }
77 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
78 inline void SetLogPublishingConfiguration(const NodeLogPublishingConfiguration& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = value; }
79 inline void SetLogPublishingConfiguration(NodeLogPublishingConfiguration&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::move(value); }
83
85
91 inline const StateDBType& GetStateDB() const{ return m_stateDB; }
92 inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; }
93 inline void SetStateDB(const StateDBType& value) { m_stateDBHasBeenSet = true; m_stateDB = value; }
94 inline void SetStateDB(StateDBType&& value) { m_stateDBHasBeenSet = true; m_stateDB = std::move(value); }
95 inline NodeConfiguration& WithStateDB(const StateDBType& value) { SetStateDB(value); return *this;}
96 inline NodeConfiguration& WithStateDB(StateDBType&& value) { SetStateDB(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_instanceType;
101 bool m_instanceTypeHasBeenSet = false;
102
103 Aws::String m_availabilityZone;
104 bool m_availabilityZoneHasBeenSet = false;
105
106 NodeLogPublishingConfiguration m_logPublishingConfiguration;
107 bool m_logPublishingConfigurationHasBeenSet = false;
108
109 StateDBType m_stateDB;
110 bool m_stateDBHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ManagedBlockchain
115} // namespace Aws
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
NodeConfiguration & WithAvailabilityZone(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration()
void SetLogPublishingConfiguration(const NodeLogPublishingConfiguration &value)
void SetAvailabilityZone(const Aws::String &value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
const NodeLogPublishingConfiguration & GetLogPublishingConfiguration() const
void SetLogPublishingConfiguration(NodeLogPublishingConfiguration &&value)
NodeConfiguration & WithInstanceType(const Aws::String &value)
NodeConfiguration & WithLogPublishingConfiguration(NodeLogPublishingConfiguration &&value)
NodeConfiguration & WithAvailabilityZone(const char *value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
NodeConfiguration & WithAvailabilityZone(Aws::String &&value)
NodeConfiguration & WithInstanceType(Aws::String &&value)
NodeConfiguration & WithStateDB(StateDBType &&value)
NodeConfiguration & WithLogPublishingConfiguration(const NodeLogPublishingConfiguration &value)
NodeConfiguration & WithInstanceType(const char *value)
NodeConfiguration & WithStateDB(const StateDBType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue