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

com.oracle.bmc.bds.model.NodeBackupSummary Maven / Gradle / Ivy

Go to download

This project contains the SDK distribution used for Oracle Cloud Infrastructure, and all the dependencies that can be shaded. It also has Maven dependencies that cannot be shaded. Therefore, use this module to depend on the shaded distribution via Maven -- it will shade everything that can be shaded, and automatically pull in the other dependencies.

There is a newer version: 3.55.2
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.bds.model;

/**
 * The information about the nodeBackupSummary. 
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set * fields into account. The constructor, on the other hand, does not take the explicitly set fields * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190531") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NodeBackupSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class NodeBackupSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "displayName", "nodeInstanceId", "nodeHostName", "backupTriggerType", "backupType", "lifecycleState", "timeCreated" }) public NodeBackupSummary( String id, String displayName, String nodeInstanceId, String nodeHostName, NodeBackup.BackupTriggerType backupTriggerType, NodeBackup.BackupType backupType, NodeBackup.LifecycleState lifecycleState, java.util.Date timeCreated) { super(); this.id = id; this.displayName = displayName; this.nodeInstanceId = nodeInstanceId; this.nodeHostName = nodeHostName; this.backupTriggerType = backupTriggerType; this.backupType = backupType; this.lifecycleState = lifecycleState; this.timeCreated = timeCreated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** The id of the node backup. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * The id of the node backup. * * @param id the value to set * @return this builder */ public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } /** BDS generated name for the backup. Format is nodeHostName_timeCreated. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** * BDS generated name for the backup. Format is nodeHostName_timeCreated. * * @param displayName the value to set * @return this builder */ public Builder displayName(String displayName) { this.displayName = displayName; this.__explicitlySet__.add("displayName"); return this; } /** * The instance OCID of the node, which is the resource from which the node backup was * acquired. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") private String nodeInstanceId; /** * The instance OCID of the node, which is the resource from which the node backup was * acquired. * * @param nodeInstanceId the value to set * @return this builder */ public Builder nodeInstanceId(String nodeInstanceId) { this.nodeInstanceId = nodeInstanceId; this.__explicitlySet__.add("nodeInstanceId"); return this; } /** Host name of the node that the backup belongs to. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") private String nodeHostName; /** * Host name of the node that the backup belongs to. * * @param nodeHostName the value to set * @return this builder */ public Builder nodeHostName(String nodeHostName) { this.nodeHostName = nodeHostName; this.__explicitlySet__.add("nodeHostName"); return this; } /** type based on how backup action was initiated. */ @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") private NodeBackup.BackupTriggerType backupTriggerType; /** * type based on how backup action was initiated. * * @param backupTriggerType the value to set * @return this builder */ public Builder backupTriggerType(NodeBackup.BackupTriggerType backupTriggerType) { this.backupTriggerType = backupTriggerType; this.__explicitlySet__.add("backupTriggerType"); return this; } /** * Incremental backup type includes only the changes since the last backup. Full backup type * includes all changes since the volume was created */ @com.fasterxml.jackson.annotation.JsonProperty("backupType") private NodeBackup.BackupType backupType; /** * Incremental backup type includes only the changes since the last backup. Full backup type * includes all changes since the volume was created * * @param backupType the value to set * @return this builder */ public Builder backupType(NodeBackup.BackupType backupType) { this.backupType = backupType; this.__explicitlySet__.add("backupType"); return this; } /** The state of NodeBackup. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private NodeBackup.LifecycleState lifecycleState; /** * The state of NodeBackup. * * @param lifecycleState the value to set * @return this builder */ public Builder lifecycleState(NodeBackup.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** * The time the cluster was created, shown as an RFC 3339 formatted datetime string. * * @param timeCreated the value to set * @return this builder */ public Builder timeCreated(java.util.Date timeCreated) { this.timeCreated = timeCreated; this.__explicitlySet__.add("timeCreated"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public NodeBackupSummary build() { NodeBackupSummary model = new NodeBackupSummary( this.id, this.displayName, this.nodeInstanceId, this.nodeHostName, this.backupTriggerType, this.backupType, this.lifecycleState, this.timeCreated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(NodeBackupSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } if (model.wasPropertyExplicitlySet("nodeInstanceId")) { this.nodeInstanceId(model.getNodeInstanceId()); } if (model.wasPropertyExplicitlySet("nodeHostName")) { this.nodeHostName(model.getNodeHostName()); } if (model.wasPropertyExplicitlySet("backupTriggerType")) { this.backupTriggerType(model.getBackupTriggerType()); } if (model.wasPropertyExplicitlySet("backupType")) { this.backupType(model.getBackupType()); } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** The id of the node backup. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * The id of the node backup. * * @return the value */ public String getId() { return id; } /** BDS generated name for the backup. Format is nodeHostName_timeCreated. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** * BDS generated name for the backup. Format is nodeHostName_timeCreated. * * @return the value */ public String getDisplayName() { return displayName; } /** * The instance OCID of the node, which is the resource from which the node backup was acquired. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeInstanceId") private final String nodeInstanceId; /** * The instance OCID of the node, which is the resource from which the node backup was acquired. * * @return the value */ public String getNodeInstanceId() { return nodeInstanceId; } /** Host name of the node that the backup belongs to. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeHostName") private final String nodeHostName; /** * Host name of the node that the backup belongs to. * * @return the value */ public String getNodeHostName() { return nodeHostName; } /** type based on how backup action was initiated. */ @com.fasterxml.jackson.annotation.JsonProperty("backupTriggerType") private final NodeBackup.BackupTriggerType backupTriggerType; /** * type based on how backup action was initiated. * * @return the value */ public NodeBackup.BackupTriggerType getBackupTriggerType() { return backupTriggerType; } /** * Incremental backup type includes only the changes since the last backup. Full backup type * includes all changes since the volume was created */ @com.fasterxml.jackson.annotation.JsonProperty("backupType") private final NodeBackup.BackupType backupType; /** * Incremental backup type includes only the changes since the last backup. Full backup type * includes all changes since the volume was created * * @return the value */ public NodeBackup.BackupType getBackupType() { return backupType; } /** The state of NodeBackup. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final NodeBackup.LifecycleState lifecycleState; /** * The state of NodeBackup. * * @return the value */ public NodeBackup.LifecycleState getLifecycleState() { return lifecycleState; } /** The time the cluster was created, shown as an RFC 3339 formatted datetime string. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** * The time the cluster was created, shown as an RFC 3339 formatted datetime string. * * @return the value */ public java.util.Date getTimeCreated() { return timeCreated; } @Override public String toString() { return this.toString(true); } /** * Return a string representation of the object. * * @param includeByteArrayContents true to include the full contents of byte arrays * @return string representation */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("NodeBackupSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", nodeInstanceId=").append(String.valueOf(this.nodeInstanceId)); sb.append(", nodeHostName=").append(String.valueOf(this.nodeHostName)); sb.append(", backupTriggerType=").append(String.valueOf(this.backupTriggerType)); sb.append(", backupType=").append(String.valueOf(this.backupType)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof NodeBackupSummary)) { return false; } NodeBackupSummary other = (NodeBackupSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.nodeInstanceId, other.nodeInstanceId) && java.util.Objects.equals(this.nodeHostName, other.nodeHostName) && java.util.Objects.equals(this.backupTriggerType, other.backupTriggerType) && java.util.Objects.equals(this.backupType, other.backupType) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.nodeInstanceId == null ? 43 : this.nodeInstanceId.hashCode()); result = (result * PRIME) + (this.nodeHostName == null ? 43 : this.nodeHostName.hashCode()); result = (result * PRIME) + (this.backupTriggerType == null ? 43 : this.backupTriggerType.hashCode()); result = (result * PRIME) + (this.backupType == null ? 43 : this.backupType.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy