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

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

There is a newer version: 3.55.1
Show newest version
/**
 * Copyright (c) 2016, 2023, 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;

/**
 * Run Object Store Script step details. 
* 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 = RunObjectStoreScriptUserDefinedStep.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "stepType") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class RunObjectStoreScriptUserDefinedStep extends DrPlanUserDefinedStep { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** * The OCID of the instance on which this script or command should be executed. * *

*For moving instances:** *runOnInstanceId* must be the OCID of the instance in the * region where the instance is currently present. * *

*For non-moving instances:** *runOnInstanceId* must be the OCID of the non-moving * instance. * *

Example: {@code ocid1.instance.oc1..uniqueID} */ @com.fasterxml.jackson.annotation.JsonProperty("runOnInstanceId") private String runOnInstanceId; /** * The OCID of the instance on which this script or command should be executed. * *

*For moving instances:** *runOnInstanceId* must be the OCID of the instance in the * region where the instance is currently present. * *

*For non-moving instances:** *runOnInstanceId* must be the OCID of the non-moving * instance. * *

Example: {@code ocid1.instance.oc1..uniqueID} * * @param runOnInstanceId the value to set * @return this builder */ public Builder runOnInstanceId(String runOnInstanceId) { this.runOnInstanceId = runOnInstanceId; this.__explicitlySet__.add("runOnInstanceId"); return this; } /** * The region of the instance where this script or command should be executed. * *

Example: {@code us-ashburn-1} */ @com.fasterxml.jackson.annotation.JsonProperty("runOnInstanceRegion") private String runOnInstanceRegion; /** * The region of the instance where this script or command should be executed. * *

Example: {@code us-ashburn-1} * * @param runOnInstanceRegion the value to set * @return this builder */ public Builder runOnInstanceRegion(String runOnInstanceRegion) { this.runOnInstanceRegion = runOnInstanceRegion; this.__explicitlySet__.add("runOnInstanceRegion"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("objectStorageScriptLocation") private ObjectStorageScriptLocation objectStorageScriptLocation; public Builder objectStorageScriptLocation( ObjectStorageScriptLocation objectStorageScriptLocation) { this.objectStorageScriptLocation = objectStorageScriptLocation; this.__explicitlySet__.add("objectStorageScriptLocation"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public RunObjectStoreScriptUserDefinedStep build() { RunObjectStoreScriptUserDefinedStep model = new RunObjectStoreScriptUserDefinedStep( this.runOnInstanceId, this.runOnInstanceRegion, this.objectStorageScriptLocation); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(RunObjectStoreScriptUserDefinedStep model) { if (model.wasPropertyExplicitlySet("runOnInstanceId")) { this.runOnInstanceId(model.getRunOnInstanceId()); } if (model.wasPropertyExplicitlySet("runOnInstanceRegion")) { this.runOnInstanceRegion(model.getRunOnInstanceRegion()); } if (model.wasPropertyExplicitlySet("objectStorageScriptLocation")) { this.objectStorageScriptLocation(model.getObjectStorageScriptLocation()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } @Deprecated public RunObjectStoreScriptUserDefinedStep( String runOnInstanceId, String runOnInstanceRegion, ObjectStorageScriptLocation objectStorageScriptLocation) { super(); this.runOnInstanceId = runOnInstanceId; this.runOnInstanceRegion = runOnInstanceRegion; this.objectStorageScriptLocation = objectStorageScriptLocation; } /** * The OCID of the instance on which this script or command should be executed. * *

*For moving instances:** *runOnInstanceId* must be the OCID of the instance in the region * where the instance is currently present. * *

*For non-moving instances:** *runOnInstanceId* must be the OCID of the non-moving * instance. * *

Example: {@code ocid1.instance.oc1..uniqueID} */ @com.fasterxml.jackson.annotation.JsonProperty("runOnInstanceId") private final String runOnInstanceId; /** * The OCID of the instance on which this script or command should be executed. * *

*For moving instances:** *runOnInstanceId* must be the OCID of the instance in the region * where the instance is currently present. * *

*For non-moving instances:** *runOnInstanceId* must be the OCID of the non-moving * instance. * *

Example: {@code ocid1.instance.oc1..uniqueID} * * @return the value */ public String getRunOnInstanceId() { return runOnInstanceId; } /** * The region of the instance where this script or command should be executed. * *

Example: {@code us-ashburn-1} */ @com.fasterxml.jackson.annotation.JsonProperty("runOnInstanceRegion") private final String runOnInstanceRegion; /** * The region of the instance where this script or command should be executed. * *

Example: {@code us-ashburn-1} * * @return the value */ public String getRunOnInstanceRegion() { return runOnInstanceRegion; } @com.fasterxml.jackson.annotation.JsonProperty("objectStorageScriptLocation") private final ObjectStorageScriptLocation objectStorageScriptLocation; public ObjectStorageScriptLocation getObjectStorageScriptLocation() { return objectStorageScriptLocation; } @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("RunObjectStoreScriptUserDefinedStep("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", runOnInstanceId=").append(String.valueOf(this.runOnInstanceId)); sb.append(", runOnInstanceRegion=").append(String.valueOf(this.runOnInstanceRegion)); sb.append(", objectStorageScriptLocation=") .append(String.valueOf(this.objectStorageScriptLocation)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RunObjectStoreScriptUserDefinedStep)) { return false; } RunObjectStoreScriptUserDefinedStep other = (RunObjectStoreScriptUserDefinedStep) o; return java.util.Objects.equals(this.runOnInstanceId, other.runOnInstanceId) && java.util.Objects.equals(this.runOnInstanceRegion, other.runOnInstanceRegion) && java.util.Objects.equals( this.objectStorageScriptLocation, other.objectStorageScriptLocation) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.runOnInstanceId == null ? 43 : this.runOnInstanceId.hashCode()); result = (result * PRIME) + (this.runOnInstanceRegion == null ? 43 : this.runOnInstanceRegion.hashCode()); result = (result * PRIME) + (this.objectStorageScriptLocation == null ? 43 : this.objectStorageScriptLocation.hashCode()); return result; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy