/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ManagedBlockchain
{
namespace Model
{
/**
* Attributes of Ethereum for a network.
See Also:
AWS
* API Reference
*/
class NetworkEthereumAttributes
{
public:
AWS_MANAGEDBLOCKCHAIN_API NetworkEthereumAttributes();
AWS_MANAGEDBLOCKCHAIN_API NetworkEthereumAttributes(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDBLOCKCHAIN_API NetworkEthereumAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MANAGEDBLOCKCHAIN_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline const Aws::String& GetChainId() const{ return m_chainId; }
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline bool ChainIdHasBeenSet() const { return m_chainIdHasBeenSet; }
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline void SetChainId(const Aws::String& value) { m_chainIdHasBeenSet = true; m_chainId = value; }
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline void SetChainId(Aws::String&& value) { m_chainIdHasBeenSet = true; m_chainId = std::move(value); }
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline void SetChainId(const char* value) { m_chainIdHasBeenSet = true; m_chainId.assign(value); }
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline NetworkEthereumAttributes& WithChainId(const Aws::String& value) { SetChainId(value); return *this;}
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline NetworkEthereumAttributes& WithChainId(Aws::String&& value) { SetChainId(std::move(value)); return *this;}
/**
* The Ethereum CHAIN_ID
associated with the Ethereum network.
* Chain IDs are as follows:
-
mainnet = 1
* -
goerli = 5
-
rinkeby = 4
*
*/
inline NetworkEthereumAttributes& WithChainId(const char* value) { SetChainId(value); return *this;}
private:
Aws::String m_chainId;
bool m_chainIdHasBeenSet = false;
};
} // namespace Model
} // namespace ManagedBlockchain
} // namespace Aws