All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.managedblockchain.model.Node Maven / Gradle / Ivy

/*
 * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.managedblockchain.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Configuration properties of a node. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Node implements Serializable, Cloneable, StructuredPojo { /** *

* The unique identifier of the network that the node is on. *

*/ private String networkId; /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

*/ private String memberId; /** *

* The unique identifier of the node. *

*/ private String id; /** *

* The instance type of the node. *

*/ private String instanceType; /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

*/ private String availabilityZone; /** *

* Attributes of the blockchain framework being used. *

*/ private NodeFrameworkAttributes frameworkAttributes; /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

*/ private NodeLogPublishingConfiguration logPublishingConfiguration; /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

*/ private String stateDB; /** *

* The status of the node. *

*
    *
  • *

    * CREATING - The AWS account is in the process of creating a node. *

    *
  • *
  • *

    * AVAILABLE - The node has been created and can participate in the network. *

    *
  • *
  • *

    * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain * automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to * AVAILABLE. Otherwise, it moves to FAILED status. *

    *
  • *
  • *

    * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

    *
  • *
  • *

    * UPDATING - The node is in the process of being updated. *

    *
  • *
  • *

    * DELETING - The node is in the process of being deleted. *

    *
  • *
  • *

    * DELETED - The node can no longer participate on the network. *

    *
  • *
  • *

    * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

    *
  • *
  • *

    * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it * cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key was * disabled or deleted, or the grants on the key were revoked. *

    *

    * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might take * some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and * recreating the resource. *

    *
  • *
*/ private String status; /** *

* The date and time that the node was created. *

*/ private java.util.Date creationDate; /** *

* Tags assigned to the node. Each tag consists of a key and optional value. *

*

* For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

*/ private java.util.Map tags; /** *

* The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

*/ private String arn; /** *

* The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the node * uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an * AWS owned KMS key for encryption. The node inherits this parameter from the member that it belongs to. *

*

* Applies only to Hyperledger Fabric. *

*/ private String kmsKeyArn; /** *

* The unique identifier of the network that the node is on. *

* * @param networkId * The unique identifier of the network that the node is on. */ public void setNetworkId(String networkId) { this.networkId = networkId; } /** *

* The unique identifier of the network that the node is on. *

* * @return The unique identifier of the network that the node is on. */ public String getNetworkId() { return this.networkId; } /** *

* The unique identifier of the network that the node is on. *

* * @param networkId * The unique identifier of the network that the node is on. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withNetworkId(String networkId) { setNetworkId(networkId); return this; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @param memberId * The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. */ public void setMemberId(String memberId) { this.memberId = memberId; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @return The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. */ public String getMemberId() { return this.memberId; } /** *

* The unique identifier of the member to which the node belongs. *

*

* Applies only to Hyperledger Fabric. *

* * @param memberId * The unique identifier of the member to which the node belongs.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withMemberId(String memberId) { setMemberId(memberId); return this; } /** *

* The unique identifier of the node. *

* * @param id * The unique identifier of the node. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier of the node. *

* * @return The unique identifier of the node. */ public String getId() { return this.id; } /** *

* The unique identifier of the node. *

* * @param id * The unique identifier of the node. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withId(String id) { setId(id); return this; } /** *

* The instance type of the node. *

* * @param instanceType * The instance type of the node. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** *

* The instance type of the node. *

* * @return The instance type of the node. */ public String getInstanceType() { return this.instanceType; } /** *

* The instance type of the node. *

* * @param instanceType * The instance type of the node. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @param availabilityZone * The Availability Zone in which the node exists. Required for Ethereum nodes. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @return The Availability Zone in which the node exists. Required for Ethereum nodes. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone in which the node exists. Required for Ethereum nodes. *

* * @param availabilityZone * The Availability Zone in which the node exists. Required for Ethereum nodes. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* Attributes of the blockchain framework being used. *

* * @param frameworkAttributes * Attributes of the blockchain framework being used. */ public void setFrameworkAttributes(NodeFrameworkAttributes frameworkAttributes) { this.frameworkAttributes = frameworkAttributes; } /** *

* Attributes of the blockchain framework being used. *

* * @return Attributes of the blockchain framework being used. */ public NodeFrameworkAttributes getFrameworkAttributes() { return this.frameworkAttributes; } /** *

* Attributes of the blockchain framework being used. *

* * @param frameworkAttributes * Attributes of the blockchain framework being used. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withFrameworkAttributes(NodeFrameworkAttributes frameworkAttributes) { setFrameworkAttributes(frameworkAttributes); return this; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. */ public void setLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration) { this.logPublishingConfiguration = logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @return Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network * on Managed Blockchain. */ public NodeLogPublishingConfiguration getLogPublishingConfiguration() { return this.logPublishingConfiguration; } /** *

* Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. *

* * @param logPublishingConfiguration * Configuration properties for logging events associated with a peer node on a Hyperledger Fabric network on * Managed Blockchain. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withLogPublishingConfiguration(NodeLogPublishingConfiguration logPublishingConfiguration) { setLogPublishingConfiguration(logPublishingConfiguration); return this; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @see StateDBType */ public void setStateDB(String stateDB) { this.stateDB = stateDB; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @return The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @see StateDBType */ public String getStateDB() { return this.stateDB; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. * @see StateDBType */ public Node withStateDB(String stateDB) { setStateDB(stateDB); return this; } /** *

* The state database that the node uses. Values are LevelDB or CouchDB. *

*

* Applies only to Hyperledger Fabric. *

* * @param stateDB * The state database that the node uses. Values are LevelDB or CouchDB.

*

* Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. * @see StateDBType */ public Node withStateDB(StateDBType stateDB) { this.stateDB = stateDB.toString(); return this; } /** *

* The status of the node. *

*
    *
  • *

    * CREATING - The AWS account is in the process of creating a node. *

    *
  • *
  • *

    * AVAILABLE - The node has been created and can participate in the network. *

    *
  • *
  • *

    * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain * automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to * AVAILABLE. Otherwise, it moves to FAILED status. *

    *
  • *
  • *

    * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

    *
  • *
  • *

    * UPDATING - The node is in the process of being updated. *

    *
  • *
  • *

    * DELETING - The node is in the process of being deleted. *

    *
  • *
  • *

    * DELETED - The node can no longer participate on the network. *

    *
  • *
  • *

    * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

    *
  • *
  • *

    * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it * cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key was * disabled or deleted, or the grants on the key were revoked. *

    *

    * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might take * some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and * recreating the resource. *

    *
  • *
* * @param status * The status of the node.

*
    *
  • *

    * CREATING - The AWS account is in the process of creating a node. *

    *
  • *
  • *

    * AVAILABLE - The node has been created and can participate in the network. *

    *
  • *
  • *

    * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed * Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it * returns to AVAILABLE. Otherwise, it moves to FAILED status. *

    *
  • *
  • *

    * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

    *
  • *
  • *

    * UPDATING - The node is in the process of being updated. *

    *
  • *
  • *

    * DELETING - The node is in the process of being deleted. *

    *
  • *
  • *

    * DELETED - The node can no longer participate on the network. *

    *
  • *
  • *

    * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

    *
  • *
  • *

    * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because * it cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key * was disabled or deleted, or the grants on the key were revoked. *

    *

    * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might * take some time to find that the key is inaccessible. When a resource is in this state, we recommend * deleting and recreating the resource. *

    *
  • * @see NodeStatus */ public void setStatus(String status) { this.status = status; } /** *

    * The status of the node. *

    *
      *
    • *

      * CREATING - The AWS account is in the process of creating a node. *

      *
    • *
    • *

      * AVAILABLE - The node has been created and can participate in the network. *

      *
    • *
    • *

      * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain * automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to * AVAILABLE. Otherwise, it moves to FAILED status. *

      *
    • *
    • *

      * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

      *
    • *
    • *

      * UPDATING - The node is in the process of being updated. *

      *
    • *
    • *

      * DELETING - The node is in the process of being deleted. *

      *
    • *
    • *

      * DELETED - The node can no longer participate on the network. *

      *
    • *
    • *

      * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

      *
    • *
    • *

      * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it * cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key was * disabled or deleted, or the grants on the key were revoked. *

      *

      * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might take * some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and * recreating the resource. *

      *
    • *
    * * @return The status of the node.

    *
      *
    • *

      * CREATING - The AWS account is in the process of creating a node. *

      *
    • *
    • *

      * AVAILABLE - The node has been created and can participate in the network. *

      *
    • *
    • *

      * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed * Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, * it returns to AVAILABLE. Otherwise, it moves to FAILED status. *

      *
    • *
    • *

      * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

      *
    • *
    • *

      * UPDATING - The node is in the process of being updated. *

      *
    • *
    • *

      * DELETING - The node is in the process of being deleted. *

      *
    • *
    • *

      * DELETED - The node can no longer participate on the network. *

      *
    • *
    • *

      * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

      *
    • *
    • *

      * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected * because it cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the * KMS key was disabled or deleted, or the grants on the key were revoked. *

      *

      * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might * take some time to find that the key is inaccessible. When a resource is in this state, we recommend * deleting and recreating the resource. *

      *
    • * @see NodeStatus */ public String getStatus() { return this.status; } /** *

      * The status of the node. *

      *
        *
      • *

        * CREATING - The AWS account is in the process of creating a node. *

        *
      • *
      • *

        * AVAILABLE - The node has been created and can participate in the network. *

        *
      • *
      • *

        * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain * automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to * AVAILABLE. Otherwise, it moves to FAILED status. *

        *
      • *
      • *

        * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

        *
      • *
      • *

        * UPDATING - The node is in the process of being updated. *

        *
      • *
      • *

        * DELETING - The node is in the process of being deleted. *

        *
      • *
      • *

        * DELETED - The node can no longer participate on the network. *

        *
      • *
      • *

        * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

        *
      • *
      • *

        * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it * cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key was * disabled or deleted, or the grants on the key were revoked. *

        *

        * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might take * some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and * recreating the resource. *

        *
      • *
      * * @param status * The status of the node.

      *
        *
      • *

        * CREATING - The AWS account is in the process of creating a node. *

        *
      • *
      • *

        * AVAILABLE - The node has been created and can participate in the network. *

        *
      • *
      • *

        * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed * Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it * returns to AVAILABLE. Otherwise, it moves to FAILED status. *

        *
      • *
      • *

        * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

        *
      • *
      • *

        * UPDATING - The node is in the process of being updated. *

        *
      • *
      • *

        * DELETING - The node is in the process of being deleted. *

        *
      • *
      • *

        * DELETED - The node can no longer participate on the network. *

        *
      • *
      • *

        * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

        *
      • *
      • *

        * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because * it cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key * was disabled or deleted, or the grants on the key were revoked. *

        *

        * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might * take some time to find that the key is inaccessible. When a resource is in this state, we recommend * deleting and recreating the resource. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see NodeStatus */ public Node withStatus(String status) { setStatus(status); return this; } /** *

        * The status of the node. *

        *
          *
        • *

          * CREATING - The AWS account is in the process of creating a node. *

          *
        • *
        • *

          * AVAILABLE - The node has been created and can participate in the network. *

          *
        • *
        • *

          * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed Blockchain * automatically finds nodes in this state and tries to recover them. If a node is recoverable, it returns to * AVAILABLE. Otherwise, it moves to FAILED status. *

          *
        • *
        • *

          * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

          *
        • *
        • *

          * UPDATING - The node is in the process of being updated. *

          *
        • *
        • *

          * DELETING - The node is in the process of being deleted. *

          *
        • *
        • *

          * DELETED - The node can no longer participate on the network. *

          *
        • *
        • *

          * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

          *
        • *
        • *

          * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because it * cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key was * disabled or deleted, or the grants on the key were revoked. *

          *

          * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might take * some time to find that the key is inaccessible. When a resource is in this state, we recommend deleting and * recreating the resource. *

          *
        • *
        * * @param status * The status of the node.

        *
          *
        • *

          * CREATING - The AWS account is in the process of creating a node. *

          *
        • *
        • *

          * AVAILABLE - The node has been created and can participate in the network. *

          *
        • *
        • *

          * UNHEALTHY - The node is impaired and might not function as expected. Amazon Managed * Blockchain automatically finds nodes in this state and tries to recover them. If a node is recoverable, it * returns to AVAILABLE. Otherwise, it moves to FAILED status. *

          *
        • *
        • *

          * CREATE_FAILED - The AWS account attempted to create a node and creation failed. *

          *
        • *
        • *

          * UPDATING - The node is in the process of being updated. *

          *
        • *
        • *

          * DELETING - The node is in the process of being deleted. *

          *
        • *
        • *

          * DELETED - The node can no longer participate on the network. *

          *
        • *
        • *

          * FAILED - The node is no longer functional, cannot be recovered, and must be deleted. *

          *
        • *
        • *

          * INACCESSIBLE_ENCRYPTION_KEY - The node is impaired and might not function as expected because * it cannot access the specified customer managed key in AWS KMS for encryption at rest. Either the KMS key * was disabled or deleted, or the grants on the key were revoked. *

          *

          * The effect of disabling or deleting a key, or revoking a grant is not immediate. The node resource might * take some time to find that the key is inaccessible. When a resource is in this state, we recommend * deleting and recreating the resource. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see NodeStatus */ public Node withStatus(NodeStatus status) { this.status = status.toString(); return this; } /** *

          * The date and time that the node was created. *

          * * @param creationDate * The date and time that the node was created. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** *

          * The date and time that the node was created. *

          * * @return The date and time that the node was created. */ public java.util.Date getCreationDate() { return this.creationDate; } /** *

          * The date and time that the node was created. *

          * * @param creationDate * The date and time that the node was created. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** *

          * Tags assigned to the node. Each tag consists of a key and optional value. *

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

          * * @return Tags assigned to the node. Each tag consists of a key and optional value.

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. */ public java.util.Map getTags() { return tags; } /** *

          * Tags assigned to the node. Each tag consists of a key and optional value. *

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

          * * @param tags * Tags assigned to the node. Each tag consists of a key and optional value.

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

          * Tags assigned to the node. Each tag consists of a key and optional value. *

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. *

          * * @param tags * Tags assigned to the node. Each tag consists of a key and optional value.

          *

          * For more information about tags, see Tagging * Resources in the Amazon Managed Blockchain Ethereum Developer Guide, or Tagging Resources in the Amazon Managed Blockchain Hyperledger Fabric Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see Node#withTags * @returns a reference to this object so that method calls can be chained together. */ public Node addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public Node clearTagsEntries() { this.tags = null; return this; } /** *

          * The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

          * * @param arn * The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public void setArn(String arn) { this.arn = arn; } /** *

          * The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

          * * @return The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. */ public String getArn() { return this.arn; } /** *

          * The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. *

          * * @param arn * The Amazon Resource Name (ARN) of the node. For more information about ARNs and their format, see Amazon Resource Names * (ARNs) in the AWS General Reference. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withArn(String arn) { setArn(arn); return this; } /** *

          * The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the node * uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an * AWS owned KMS key for encryption. The node inherits this parameter from the member that it belongs to. *

          *

          * Applies only to Hyperledger Fabric. *

          * * @param kmsKeyArn * The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that * the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", * the node uses an AWS owned KMS key for encryption. The node inherits this parameter from the member that * it belongs to.

          *

          * Applies only to Hyperledger Fabric. */ public void setKmsKeyArn(String kmsKeyArn) { this.kmsKeyArn = kmsKeyArn; } /** *

          * The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the node * uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an * AWS owned KMS key for encryption. The node inherits this parameter from the member that it belongs to. *

          *

          * Applies only to Hyperledger Fabric. *

          * * @return The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that * the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", * the node uses an AWS owned KMS key for encryption. The node inherits this parameter from the member that * it belongs to.

          *

          * Applies only to Hyperledger Fabric. */ public String getKmsKeyArn() { return this.kmsKeyArn; } /** *

          * The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that the node * uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", the node uses an * AWS owned KMS key for encryption. The node inherits this parameter from the member that it belongs to. *

          *

          * Applies only to Hyperledger Fabric. *

          * * @param kmsKeyArn * The Amazon Resource Name (ARN) of the customer managed key in AWS Key Management Service (AWS KMS) that * the node uses for encryption at rest. If the value of this parameter is "AWS Owned KMS Key", * the node uses an AWS owned KMS key for encryption. The node inherits this parameter from the member that * it belongs to.

          *

          * Applies only to Hyperledger Fabric. * @return Returns a reference to this object so that method calls can be chained together. */ public Node withKmsKeyArn(String kmsKeyArn) { setKmsKeyArn(kmsKeyArn); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getNetworkId() != null) sb.append("NetworkId: ").append(getNetworkId()).append(","); if (getMemberId() != null) sb.append("MemberId: ").append(getMemberId()).append(","); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getInstanceType() != null) sb.append("InstanceType: ").append(getInstanceType()).append(","); if (getAvailabilityZone() != null) sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(","); if (getFrameworkAttributes() != null) sb.append("FrameworkAttributes: ").append(getFrameworkAttributes()).append(","); if (getLogPublishingConfiguration() != null) sb.append("LogPublishingConfiguration: ").append(getLogPublishingConfiguration()).append(","); if (getStateDB() != null) sb.append("StateDB: ").append(getStateDB()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getKmsKeyArn() != null) sb.append("KmsKeyArn: ").append(getKmsKeyArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Node == false) return false; Node other = (Node) obj; if (other.getNetworkId() == null ^ this.getNetworkId() == null) return false; if (other.getNetworkId() != null && other.getNetworkId().equals(this.getNetworkId()) == false) return false; if (other.getMemberId() == null ^ this.getMemberId() == null) return false; if (other.getMemberId() != null && other.getMemberId().equals(this.getMemberId()) == false) return false; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getInstanceType() == null ^ this.getInstanceType() == null) return false; if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false) return false; if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false; if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; if (other.getFrameworkAttributes() == null ^ this.getFrameworkAttributes() == null) return false; if (other.getFrameworkAttributes() != null && other.getFrameworkAttributes().equals(this.getFrameworkAttributes()) == false) return false; if (other.getLogPublishingConfiguration() == null ^ this.getLogPublishingConfiguration() == null) return false; if (other.getLogPublishingConfiguration() != null && other.getLogPublishingConfiguration().equals(this.getLogPublishingConfiguration()) == false) return false; if (other.getStateDB() == null ^ this.getStateDB() == null) return false; if (other.getStateDB() != null && other.getStateDB().equals(this.getStateDB()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getKmsKeyArn() == null ^ this.getKmsKeyArn() == null) return false; if (other.getKmsKeyArn() != null && other.getKmsKeyArn().equals(this.getKmsKeyArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNetworkId() == null) ? 0 : getNetworkId().hashCode()); hashCode = prime * hashCode + ((getMemberId() == null) ? 0 : getMemberId().hashCode()); hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getFrameworkAttributes() == null) ? 0 : getFrameworkAttributes().hashCode()); hashCode = prime * hashCode + ((getLogPublishingConfiguration() == null) ? 0 : getLogPublishingConfiguration().hashCode()); hashCode = prime * hashCode + ((getStateDB() == null) ? 0 : getStateDB().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getKmsKeyArn() == null) ? 0 : getKmsKeyArn().hashCode()); return hashCode; } @Override public Node clone() { try { return (Node) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.managedblockchain.model.transform.NodeMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy