AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename InstanceTypeT = Aws::String>
49 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
50 template<typename InstanceTypeT = Aws::String>
51 NodeConfiguration& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
53
55
59 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
60 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
61 template<typename AvailabilityZoneT = Aws::String>
62 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
63 template<typename AvailabilityZoneT = Aws::String>
64 NodeConfiguration& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
66
68
72 inline const NodeLogPublishingConfiguration& GetLogPublishingConfiguration() const { return m_logPublishingConfiguration; }
73 inline bool LogPublishingConfigurationHasBeenSet() const { return m_logPublishingConfigurationHasBeenSet; }
74 template<typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
75 void SetLogPublishingConfiguration(LogPublishingConfigurationT&& value) { m_logPublishingConfigurationHasBeenSet = true; m_logPublishingConfiguration = std::forward<LogPublishingConfigurationT>(value); }
76 template<typename LogPublishingConfigurationT = NodeLogPublishingConfiguration>
77 NodeConfiguration& WithLogPublishingConfiguration(LogPublishingConfigurationT&& value) { SetLogPublishingConfiguration(std::forward<LogPublishingConfigurationT>(value)); return *this;}
79
81
87 inline StateDBType GetStateDB() const { return m_stateDB; }
88 inline bool StateDBHasBeenSet() const { return m_stateDBHasBeenSet; }
89 inline void SetStateDB(StateDBType value) { m_stateDBHasBeenSet = true; m_stateDB = value; }
90 inline NodeConfiguration& WithStateDB(StateDBType value) { SetStateDB(value); return *this;}
92 private:
93
94 Aws::String m_instanceType;
95 bool m_instanceTypeHasBeenSet = false;
96
97 Aws::String m_availabilityZone;
98 bool m_availabilityZoneHasBeenSet = false;
99
100 NodeLogPublishingConfiguration m_logPublishingConfiguration;
101 bool m_logPublishingConfigurationHasBeenSet = false;
102
104 bool m_stateDBHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace ManagedBlockchain
109} // namespace Aws
NodeConfiguration & WithInstanceType(InstanceTypeT &&value)
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogPublishingConfiguration(LogPublishingConfigurationT &&value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration()=default
NodeConfiguration & WithAvailabilityZone(AvailabilityZoneT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration(Aws::Utils::Json::JsonView jsonValue)
NodeConfiguration & WithLogPublishingConfiguration(LogPublishingConfigurationT &&value)
const NodeLogPublishingConfiguration & GetLogPublishingConfiguration() const
NodeConfiguration & WithStateDB(StateDBType value)
AWS_MANAGEDBLOCKCHAIN_API NodeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue