Class PublicIp
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.vnmonitoring.model.PublicIp
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public final class PublicIp extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA public IP is a conceptual term that refers to a public IP address and related properties.The publicIp object is the API representation of a public IP. There are two types of public IPs: 1. Ephemeral 2. Reserved For more information and comparison of the two types, see [Public IP Addresses](https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). 
 Note: Objects should always be created or deserialized using thePublicIp.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of thePublicIp.Builder, which maintain a set of all explicitly set fields calledPublicIp.Builder.__explicitlySet__. ThehashCode()andequals(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 null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPublicIp.AssignedEntityTypeThe type of entity the public IP is assigned to, or in the process of being assigned to.static classPublicIp.Builderstatic classPublicIp.LifecycleStateThe public IP’s current state.static classPublicIp.LifetimeDefines when the public IP is deleted and released back to Oracle’s public IP pool.static classPublicIp.ScopeWhether the public IP is regional or specific to a particular availability domain.
 - 
Constructor SummaryConstructors Constructor Description PublicIp(String assignedEntityId, PublicIp.AssignedEntityType assignedEntityType, String availabilityDomain, String compartmentId, Map<String,Map<String,Object>> definedTags, String displayName, Map<String,String> freeformTags, String id, String ipAddress, PublicIp.LifecycleState lifecycleState, PublicIp.Lifetime lifetime, String privateIpId, PublicIp.Scope scope, Date timeCreated, String publicIpPoolId)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PublicIp.Builderbuilder()Create a new builder.booleanequals(Object o)StringgetAssignedEntityId()The OCID of the entity the public IP is assigned to, or in the process of being assigned to.PublicIp.AssignedEntityTypegetAssignedEntityType()The type of entity the public IP is assigned to, or in the process of being assigned to.StringgetAvailabilityDomain()The public IP’s availability domain.StringgetCompartmentId()The OCID of the compartment containing the public IP.Map<String,Map<String,Object>>getDefinedTags()Defined tags for this resource.StringgetDisplayName()A user-friendly name.Map<String,String>getFreeformTags()Simple key-value pair that is applied without any predefined name, type or scope.StringgetId()The public IP’s Oracle ID (OCID).StringgetIpAddress()The public IP address of the publicIp object.PublicIp.LifecycleStategetLifecycleState()The public IP’s current state.PublicIp.LifetimegetLifetime()Defines when the public IP is deleted and released back to Oracle’s public IP pool.StringgetPrivateIpId()Deprecated.StringgetPublicIpPoolId()The OCID of the pool object created in the current tenancy.PublicIp.ScopegetScope()Whether the public IP is regional or specific to a particular availability domain.DategetTimeCreated()The date and time the public IP was created, in the format defined by RFC3339.inthashCode()PublicIp.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
PublicIp@Deprecated @ConstructorProperties({"assignedEntityId","assignedEntityType","availabilityDomain","compartmentId","definedTags","displayName","freeformTags","id","ipAddress","lifecycleState","lifetime","privateIpId","scope","timeCreated","publicIpPoolId"}) public PublicIp(String assignedEntityId, PublicIp.AssignedEntityType assignedEntityType, String availabilityDomain, String compartmentId, Map<String,Map<String,Object>> definedTags, String displayName, Map<String,String> freeformTags, String id, String ipAddress, PublicIp.LifecycleState lifecycleState, PublicIp.Lifetime lifetime, String privateIpId, PublicIp.Scope scope, Date timeCreated, String publicIpPoolId) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static PublicIp.Builder builder() Create a new builder.
 - 
toBuilderpublic PublicIp.Builder toBuilder() 
 - 
getAssignedEntityIdpublic String getAssignedEntityId() The OCID of the entity the public IP is assigned to, or in the process of being assigned to.- Returns:
- the value
 
 - 
getAssignedEntityTypepublic PublicIp.AssignedEntityType getAssignedEntityType() The type of entity the public IP is assigned to, or in the process of being assigned to.- Returns:
- the value
 
 - 
getAvailabilityDomainpublic String getAvailabilityDomain() The public IP’s availability domain.This property is set only for ephemeral public IPs that are assigned to a private IP (that is, when the scope of the public IP is set to AVAILABILITY_DOMAIN). The value is the availability domain of the assigned private IP. Example: Uocm:PHX-AD-1 - Returns:
- the value
 
 - 
getCompartmentIdpublic String getCompartmentId() The OCID of the compartment containing the public IP.For an ephemeral public IP, this is the compartment of its assigned entity (which can be a private IP or a regional entity such as a NAT gateway). For a reserved public IP that is currently assigned, its compartment can be different from the assigned private IP’s. - Returns:
- the value
 
 - 
getDefinedTagspublic Map<String,Map<String,Object>> getDefinedTags() Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}} - Returns:
- the value
 
 - 
getDisplayNamepublic String getDisplayName() A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information. - Returns:
- the value
 
 - 
getFreeformTagspublic Map<String,String> getFreeformTags() Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”} - Returns:
- the value
 
 - 
getIpAddresspublic String getIpAddress() The public IP address of the publicIp object.Example: 203.0.113.2 - Returns:
- the value
 
 - 
getLifecycleStatepublic PublicIp.LifecycleState getLifecycleState() The public IP’s current state.- Returns:
- the value
 
 - 
getLifetimepublic PublicIp.Lifetime getLifetime() Defines when the public IP is deleted and released back to Oracle’s public IP pool.EPHEMERAL: The lifetime is tied to the lifetime of its assigned entity. An ephemeral public IP must always be assigned to an entity. If the assigned entity is a private IP, the ephemeral public IP is automatically deleted when the private IP is deleted, when the VNIC is terminated, or when the instance is terminated. If the assigned entity is a NatGateway, the ephemeral public IP is automatically deleted when the NAT gateway is terminated.RESERVED: You control the public IP's lifetime. You can delete a reserved public IP whenever you like. It does not need to be assigned to a private IP at all times. For more information and comparison of the two types, see [Public IP Addresses](https://docs.oracle.com/iaas/Content/Network/Tasks/managingpublicIPs.htm). - Returns:
- the value
 
 - 
getPrivateIpIdpublic String getPrivateIpId() Deprecated.Use assignedEntityId instead. The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the private IP that the public IP is currently assigned to, or in the process of being assigned to. *Note:** This is null if the public IP is not assigned to a private IP, or is in the process of being assigned to one. - Returns:
- the value
 
 - 
getScopepublic PublicIp.Scope getScope() Whether the public IP is regional or specific to a particular availability domain.REGION: The public IP exists within a region and is assigned to a regional entity (such as a NatGateway), or can be assigned to a private IP in any availability domain in the region. Reserved public IPs and ephemeral public IPs assigned to a regional entity have scope = REGION.AVAILABILITY_DOMAIN: The public IP exists within the availability domain of the entity it's assigned to, which is specified by the availabilityDomain property of the public IP object. Ephemeral public IPs that are assigned to private IPs have scope = AVAILABILITY_DOMAIN. - Returns:
- the value
 
 - 
getTimeCreatedpublic Date getTimeCreated() The date and time the public IP was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z - Returns:
- the value
 
 - 
getPublicIpPoolIdpublic String getPublicIpPoolId() The OCID of the pool object created in the current tenancy.- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-