![JAR search and dependency download from the Maven repository](/logo.png)
com.oracle.bmc.opsi.model.PeComanagedHostInsight Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oci-java-sdk-shaded-full Show documentation
Show all versions of oci-java-sdk-shaded-full Show documentation
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.
/**
* 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.opsi.model;
/**
* Private Endpoint host insight resource.
* 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: 20200630")
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(
builder = PeComanagedHostInsight.Builder.class)
@com.fasterxml.jackson.annotation.JsonTypeInfo(
use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME,
include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY,
property = "entitySource")
@com.fasterxml.jackson.annotation.JsonFilter(
com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME)
public final class PeComanagedHostInsight extends HostInsight {
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "")
public static class Builder {
@com.fasterxml.jackson.annotation.JsonProperty("id")
private String id;
public Builder id(String id) {
this.id = id;
this.__explicitlySet__.add("id");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("compartmentId")
private String compartmentId;
public Builder compartmentId(String compartmentId) {
this.compartmentId = compartmentId;
this.__explicitlySet__.add("compartmentId");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("hostName")
private String hostName;
public Builder hostName(String hostName) {
this.hostName = hostName;
this.__explicitlySet__.add("hostName");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("hostDisplayName")
private String hostDisplayName;
public Builder hostDisplayName(String hostDisplayName) {
this.hostDisplayName = hostDisplayName;
this.__explicitlySet__.add("hostDisplayName");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("hostType")
private String hostType;
public Builder hostType(String hostType) {
this.hostType = hostType;
this.__explicitlySet__.add("hostType");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("processorCount")
private Integer processorCount;
public Builder processorCount(Integer processorCount) {
this.processorCount = processorCount;
this.__explicitlySet__.add("processorCount");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("freeformTags")
private java.util.Map freeformTags;
public Builder freeformTags(java.util.Map freeformTags) {
this.freeformTags = freeformTags;
this.__explicitlySet__.add("freeformTags");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("definedTags")
private java.util.Map> definedTags;
public Builder definedTags(
java.util.Map> definedTags) {
this.definedTags = definedTags;
this.__explicitlySet__.add("definedTags");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("systemTags")
private java.util.Map> systemTags;
public Builder systemTags(java.util.Map> systemTags) {
this.systemTags = systemTags;
this.__explicitlySet__.add("systemTags");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("status")
private ResourceStatus status;
public Builder status(ResourceStatus status) {
this.status = status;
this.__explicitlySet__.add("status");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("timeCreated")
private java.util.Date timeCreated;
public Builder timeCreated(java.util.Date timeCreated) {
this.timeCreated = timeCreated;
this.__explicitlySet__.add("timeCreated");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("timeUpdated")
private java.util.Date timeUpdated;
public Builder timeUpdated(java.util.Date timeUpdated) {
this.timeUpdated = timeUpdated;
this.__explicitlySet__.add("timeUpdated");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleState")
private LifecycleState lifecycleState;
public Builder lifecycleState(LifecycleState lifecycleState) {
this.lifecycleState = lifecycleState;
this.__explicitlySet__.add("lifecycleState");
return this;
}
@com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails")
private String lifecycleDetails;
public Builder lifecycleDetails(String lifecycleDetails) {
this.lifecycleDetails = lifecycleDetails;
this.__explicitlySet__.add("lifecycleDetails");
return this;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the OPSI private endpoint
*/
@com.fasterxml.jackson.annotation.JsonProperty("opsiPrivateEndpointId")
private String opsiPrivateEndpointId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the OPSI private endpoint
*
* @param opsiPrivateEndpointId the value to set
* @return this builder
*/
public Builder opsiPrivateEndpointId(String opsiPrivateEndpointId) {
this.opsiPrivateEndpointId = opsiPrivateEndpointId;
this.__explicitlySet__.add("opsiPrivateEndpointId");
return this;
}
/**
* Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX,
* SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight:
* [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS,
* SUNOS, ZLINUX, WINDOWS, AIX, HP-UX].
*/
@com.fasterxml.jackson.annotation.JsonProperty("platformType")
private PlatformType platformType;
/**
* Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX,
* SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight:
* [LINUX]. Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS,
* SUNOS, ZLINUX, WINDOWS, AIX, HP-UX].
*
* @param platformType the value to set
* @return this builder
*/
public Builder platformType(PlatformType platformType) {
this.platformType = platformType;
this.__explicitlySet__.add("platformType");
return this;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the VM Cluster or DB System ID, depending on which configuration the resource belongs
* to.
*/
@com.fasterxml.jackson.annotation.JsonProperty("parentId")
private String parentId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the VM Cluster or DB System ID, depending on which configuration the resource belongs
* to.
*
* @param parentId the value to set
* @return this builder
*/
public Builder parentId(String parentId) {
this.parentId = parentId;
this.__explicitlySet__.add("parentId");
return this;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the Exadata Infrastructure.
*/
@com.fasterxml.jackson.annotation.JsonProperty("rootId")
private String rootId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm)
* of the Exadata Infrastructure.
*
* @param rootId the value to set
* @return this builder
*/
public Builder rootId(String rootId) {
this.rootId = rootId;
this.__explicitlySet__.add("rootId");
return this;
}
@com.fasterxml.jackson.annotation.JsonIgnore
private final java.util.Set __explicitlySet__ = new java.util.HashSet();
public PeComanagedHostInsight build() {
PeComanagedHostInsight model =
new PeComanagedHostInsight(
this.id,
this.compartmentId,
this.hostName,
this.hostDisplayName,
this.hostType,
this.processorCount,
this.freeformTags,
this.definedTags,
this.systemTags,
this.status,
this.timeCreated,
this.timeUpdated,
this.lifecycleState,
this.lifecycleDetails,
this.opsiPrivateEndpointId,
this.platformType,
this.parentId,
this.rootId);
for (String explicitlySetProperty : this.__explicitlySet__) {
model.markPropertyAsExplicitlySet(explicitlySetProperty);
}
return model;
}
@com.fasterxml.jackson.annotation.JsonIgnore
public Builder copy(PeComanagedHostInsight model) {
if (model.wasPropertyExplicitlySet("id")) {
this.id(model.getId());
}
if (model.wasPropertyExplicitlySet("compartmentId")) {
this.compartmentId(model.getCompartmentId());
}
if (model.wasPropertyExplicitlySet("hostName")) {
this.hostName(model.getHostName());
}
if (model.wasPropertyExplicitlySet("hostDisplayName")) {
this.hostDisplayName(model.getHostDisplayName());
}
if (model.wasPropertyExplicitlySet("hostType")) {
this.hostType(model.getHostType());
}
if (model.wasPropertyExplicitlySet("processorCount")) {
this.processorCount(model.getProcessorCount());
}
if (model.wasPropertyExplicitlySet("freeformTags")) {
this.freeformTags(model.getFreeformTags());
}
if (model.wasPropertyExplicitlySet("definedTags")) {
this.definedTags(model.getDefinedTags());
}
if (model.wasPropertyExplicitlySet("systemTags")) {
this.systemTags(model.getSystemTags());
}
if (model.wasPropertyExplicitlySet("status")) {
this.status(model.getStatus());
}
if (model.wasPropertyExplicitlySet("timeCreated")) {
this.timeCreated(model.getTimeCreated());
}
if (model.wasPropertyExplicitlySet("timeUpdated")) {
this.timeUpdated(model.getTimeUpdated());
}
if (model.wasPropertyExplicitlySet("lifecycleState")) {
this.lifecycleState(model.getLifecycleState());
}
if (model.wasPropertyExplicitlySet("lifecycleDetails")) {
this.lifecycleDetails(model.getLifecycleDetails());
}
if (model.wasPropertyExplicitlySet("opsiPrivateEndpointId")) {
this.opsiPrivateEndpointId(model.getOpsiPrivateEndpointId());
}
if (model.wasPropertyExplicitlySet("platformType")) {
this.platformType(model.getPlatformType());
}
if (model.wasPropertyExplicitlySet("parentId")) {
this.parentId(model.getParentId());
}
if (model.wasPropertyExplicitlySet("rootId")) {
this.rootId(model.getRootId());
}
return this;
}
}
/** Create a new builder. */
public static Builder builder() {
return new Builder();
}
public Builder toBuilder() {
return new Builder().copy(this);
}
@Deprecated
public PeComanagedHostInsight(
String id,
String compartmentId,
String hostName,
String hostDisplayName,
String hostType,
Integer processorCount,
java.util.Map freeformTags,
java.util.Map> definedTags,
java.util.Map> systemTags,
ResourceStatus status,
java.util.Date timeCreated,
java.util.Date timeUpdated,
LifecycleState lifecycleState,
String lifecycleDetails,
String opsiPrivateEndpointId,
PlatformType platformType,
String parentId,
String rootId) {
super(
id,
compartmentId,
hostName,
hostDisplayName,
hostType,
processorCount,
freeformTags,
definedTags,
systemTags,
status,
timeCreated,
timeUpdated,
lifecycleState,
lifecycleDetails);
this.opsiPrivateEndpointId = opsiPrivateEndpointId;
this.platformType = platformType;
this.parentId = parentId;
this.rootId = rootId;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the OPSI private endpoint
*/
@com.fasterxml.jackson.annotation.JsonProperty("opsiPrivateEndpointId")
private final String opsiPrivateEndpointId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the OPSI private endpoint
*
* @return the value
*/
public String getOpsiPrivateEndpointId() {
return opsiPrivateEndpointId;
}
/**
* Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX,
* SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX].
* Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS,
* ZLINUX, WINDOWS, AIX, HP-UX].
*/
public enum PlatformType implements com.oracle.bmc.http.internal.BmcEnum {
Linux("LINUX"),
Solaris("SOLARIS"),
Sunos("SUNOS"),
Zlinux("ZLINUX"),
Windows("WINDOWS"),
Aix("AIX"),
HpUx("HP_UX"),
/**
* This value is used if a service returns a value for this enum that is not recognized by
* this version of the SDK.
*/
UnknownEnumValue(null);
private static final org.slf4j.Logger LOG =
org.slf4j.LoggerFactory.getLogger(PlatformType.class);
private final String value;
private static java.util.Map map;
static {
map = new java.util.HashMap<>();
for (PlatformType v : PlatformType.values()) {
if (v != UnknownEnumValue) {
map.put(v.getValue(), v);
}
}
}
PlatformType(String value) {
this.value = value;
}
@com.fasterxml.jackson.annotation.JsonValue
public String getValue() {
return value;
}
@com.fasterxml.jackson.annotation.JsonCreator
public static PlatformType create(String key) {
if (map.containsKey(key)) {
return map.get(key);
}
LOG.warn(
"Received unknown value '{}' for enum 'PlatformType', returning UnknownEnumValue",
key);
return UnknownEnumValue;
}
};
/**
* Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX,
* SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX].
* Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS,
* ZLINUX, WINDOWS, AIX, HP-UX].
*/
@com.fasterxml.jackson.annotation.JsonProperty("platformType")
private final PlatformType platformType;
/**
* Platform type. Supported platformType(s) for MACS-managed external host insight: [LINUX,
* SOLARIS, WINDOWS]. Supported platformType(s) for MACS-managed cloud host insight: [LINUX].
* Supported platformType(s) for EM-managed external host insight: [LINUX, SOLARIS, SUNOS,
* ZLINUX, WINDOWS, AIX, HP-UX].
*
* @return the value
*/
public PlatformType getPlatformType() {
return platformType;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the VM Cluster or DB System ID, depending on which configuration the resource belongs to.
*/
@com.fasterxml.jackson.annotation.JsonProperty("parentId")
private final String parentId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the VM Cluster or DB System ID, depending on which configuration the resource belongs to.
*
* @return the value
*/
public String getParentId() {
return parentId;
}
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the Exadata Infrastructure.
*/
@com.fasterxml.jackson.annotation.JsonProperty("rootId")
private final String rootId;
/**
* The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of
* the Exadata Infrastructure.
*
* @return the value
*/
public String getRootId() {
return rootId;
}
@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("PeComanagedHostInsight(");
sb.append("super=").append(super.toString(includeByteArrayContents));
sb.append(", opsiPrivateEndpointId=").append(String.valueOf(this.opsiPrivateEndpointId));
sb.append(", platformType=").append(String.valueOf(this.platformType));
sb.append(", parentId=").append(String.valueOf(this.parentId));
sb.append(", rootId=").append(String.valueOf(this.rootId));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof PeComanagedHostInsight)) {
return false;
}
PeComanagedHostInsight other = (PeComanagedHostInsight) o;
return java.util.Objects.equals(this.opsiPrivateEndpointId, other.opsiPrivateEndpointId)
&& java.util.Objects.equals(this.platformType, other.platformType)
&& java.util.Objects.equals(this.parentId, other.parentId)
&& java.util.Objects.equals(this.rootId, other.rootId)
&& super.equals(other);
}
@Override
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
result =
(result * PRIME)
+ (this.opsiPrivateEndpointId == null
? 43
: this.opsiPrivateEndpointId.hashCode());
result = (result * PRIME) + (this.platformType == null ? 43 : this.platformType.hashCode());
result = (result * PRIME) + (this.parentId == null ? 43 : this.parentId.hashCode());
result = (result * PRIME) + (this.rootId == null ? 43 : this.rootId.hashCode());
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy