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

com.oracle.bmc.disasterrecovery.model.CreateComputeInstanceMovableFileSystemOperationDetails Maven / Gradle / Ivy

There is a newer version: 3.55.1
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.disasterrecovery.model;

/**
 * The details for creating the operations performed on a file system for movable compute instance.
 * 
* 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: 20220125") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateComputeInstanceMovableFileSystemOperationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateComputeInstanceMovableFileSystemOperationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "exportPath", "mountPoint", "mountDetails", "unmountDetails" }) public CreateComputeInstanceMovableFileSystemOperationDetails( String exportPath, String mountPoint, CreateFileSystemMountDetails mountDetails, CreateFileSystemUnmountDetails unmountDetails) { super(); this.exportPath = exportPath; this.mountPoint = mountPoint; this.mountDetails = mountDetails; this.unmountDetails = unmountDetails; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The export path of the file system. * *

Example: {@code /fs-export-path} */ @com.fasterxml.jackson.annotation.JsonProperty("exportPath") private String exportPath; /** * The export path of the file system. * *

Example: {@code /fs-export-path} * * @param exportPath the value to set * @return this builder */ public Builder exportPath(String exportPath) { this.exportPath = exportPath; this.__explicitlySet__.add("exportPath"); return this; } /** * The physical mount point of the file system on a host. * *

Example: {@code /mnt/yourmountpoint} */ @com.fasterxml.jackson.annotation.JsonProperty("mountPoint") private String mountPoint; /** * The physical mount point of the file system on a host. * *

Example: {@code /mnt/yourmountpoint} * * @param mountPoint the value to set * @return this builder */ public Builder mountPoint(String mountPoint) { this.mountPoint = mountPoint; this.__explicitlySet__.add("mountPoint"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("mountDetails") private CreateFileSystemMountDetails mountDetails; public Builder mountDetails(CreateFileSystemMountDetails mountDetails) { this.mountDetails = mountDetails; this.__explicitlySet__.add("mountDetails"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("unmountDetails") private CreateFileSystemUnmountDetails unmountDetails; public Builder unmountDetails(CreateFileSystemUnmountDetails unmountDetails) { this.unmountDetails = unmountDetails; this.__explicitlySet__.add("unmountDetails"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateComputeInstanceMovableFileSystemOperationDetails build() { CreateComputeInstanceMovableFileSystemOperationDetails model = new CreateComputeInstanceMovableFileSystemOperationDetails( this.exportPath, this.mountPoint, this.mountDetails, this.unmountDetails); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateComputeInstanceMovableFileSystemOperationDetails model) { if (model.wasPropertyExplicitlySet("exportPath")) { this.exportPath(model.getExportPath()); } if (model.wasPropertyExplicitlySet("mountPoint")) { this.mountPoint(model.getMountPoint()); } if (model.wasPropertyExplicitlySet("mountDetails")) { this.mountDetails(model.getMountDetails()); } if (model.wasPropertyExplicitlySet("unmountDetails")) { this.unmountDetails(model.getUnmountDetails()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** * The export path of the file system. * *

Example: {@code /fs-export-path} */ @com.fasterxml.jackson.annotation.JsonProperty("exportPath") private final String exportPath; /** * The export path of the file system. * *

Example: {@code /fs-export-path} * * @return the value */ public String getExportPath() { return exportPath; } /** * The physical mount point of the file system on a host. * *

Example: {@code /mnt/yourmountpoint} */ @com.fasterxml.jackson.annotation.JsonProperty("mountPoint") private final String mountPoint; /** * The physical mount point of the file system on a host. * *

Example: {@code /mnt/yourmountpoint} * * @return the value */ public String getMountPoint() { return mountPoint; } @com.fasterxml.jackson.annotation.JsonProperty("mountDetails") private final CreateFileSystemMountDetails mountDetails; public CreateFileSystemMountDetails getMountDetails() { return mountDetails; } @com.fasterxml.jackson.annotation.JsonProperty("unmountDetails") private final CreateFileSystemUnmountDetails unmountDetails; public CreateFileSystemUnmountDetails getUnmountDetails() { return unmountDetails; } @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("CreateComputeInstanceMovableFileSystemOperationDetails("); sb.append("super=").append(super.toString()); sb.append("exportPath=").append(String.valueOf(this.exportPath)); sb.append(", mountPoint=").append(String.valueOf(this.mountPoint)); sb.append(", mountDetails=").append(String.valueOf(this.mountDetails)); sb.append(", unmountDetails=").append(String.valueOf(this.unmountDetails)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CreateComputeInstanceMovableFileSystemOperationDetails)) { return false; } CreateComputeInstanceMovableFileSystemOperationDetails other = (CreateComputeInstanceMovableFileSystemOperationDetails) o; return java.util.Objects.equals(this.exportPath, other.exportPath) && java.util.Objects.equals(this.mountPoint, other.mountPoint) && java.util.Objects.equals(this.mountDetails, other.mountDetails) && java.util.Objects.equals(this.unmountDetails, other.unmountDetails) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.exportPath == null ? 43 : this.exportPath.hashCode()); result = (result * PRIME) + (this.mountPoint == null ? 43 : this.mountPoint.hashCode()); result = (result * PRIME) + (this.mountDetails == null ? 43 : this.mountDetails.hashCode()); result = (result * PRIME) + (this.unmountDetails == null ? 43 : this.unmountDetails.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy