Package com.ibm.cloud.is.vpc.v1.model
Class VPC
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VPC
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VPC extends com.ibm.cloud.sdk.core.service.model.GenericModel
VPC.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
VPC.HealthState
The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state.static interface
VPC.ResourceType
The resource type.static interface
VPC.Status
The status of this VPC.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreatedAt()
Gets the createdAt.String
getCrn()
Gets the crn.List<VPCCSESourceIP>
getCseSourceIps()
Gets the cseSourceIps.NetworkACLReference
getDefaultNetworkAcl()
Gets the defaultNetworkAcl.RoutingTableReference
getDefaultRoutingTable()
Gets the defaultRoutingTable.SecurityGroupReference
getDefaultSecurityGroup()
Gets the defaultSecurityGroup.VPCDNS
getDns()
Gets the dns.List<VPCHealthReason>
getHealthReasons()
Gets the healthReasons.String
getHealthState()
Gets the healthState.String
getHref()
Gets the href.String
getId()
Gets the id.String
getName()
Gets the name.ResourceGroupReference
getResourceGroup()
Gets the resourceGroup.String
getResourceType()
Gets the resourceType.String
getStatus()
Gets the status.Boolean
isClassicAccess()
Gets the classicAccess.
-
-
-
Method Detail
-
isClassicAccess
public Boolean isClassicAccess()
Gets the classicAccess. Indicates whether this VPC is connected to Classic Infrastructure. If true, this VPC's resources have private network connectivity to the account's Classic Infrastructure resources. Only one VPC, per region, may be connected in this way. This value is set at creation and subsequently immutable.- Returns:
- the classicAccess
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the VPC was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this VPC.- Returns:
- the crn
-
getCseSourceIps
public List<VPCCSESourceIP> getCseSourceIps()
Gets the cseSourceIps. The CSE ([Cloud Service Endpoint](https://cloud.ibm.com/docs/resources?topic=resources-service-endpoints)) source IP addresses for the VPC. The VPC will have one CSE source IP address per zone.- Returns:
- the cseSourceIps
-
getDefaultNetworkAcl
public NetworkACLReference getDefaultNetworkAcl()
Gets the defaultNetworkAcl. The default network ACL to use for subnets created in this VPC.- Returns:
- the defaultNetworkAcl
-
getDefaultRoutingTable
public RoutingTableReference getDefaultRoutingTable()
Gets the defaultRoutingTable. The default routing table to use for subnets created in this VPC.- Returns:
- the defaultRoutingTable
-
getDefaultSecurityGroup
public SecurityGroupReference getDefaultSecurityGroup()
Gets the defaultSecurityGroup. The default security group for this VPC. Resources created in this VPC that allow a security group to be optionally specified will use this security group by default.- Returns:
- the defaultSecurityGroup
-
getDns
public VPCDNS getDns()
Gets the dns. The DNS configuration for this VPC.- Returns:
- the dns
-
getHealthReasons
public List<VPCHealthReason> getHealthReasons()
Gets the healthReasons. The reasons for the current `health_state` (if any).- Returns:
- the healthReasons
-
getHealthState
public String getHealthState()
Gets the healthState. The health of this resource: - `ok`: No abnormal behavior detected - `degraded`: Experiencing compromised performance, capacity, or connectivity - `faulted`: Completely unreachable, inoperative, or otherwise entirely incapacitated - `inapplicable`: The health state does not apply because of the current lifecycle state. A resource with a lifecycle state of `failed` or `deleting` will have a health state of `inapplicable`. A `pending` resource may also have this state.- Returns:
- the healthState
-
getHref
public String getHref()
Gets the href. The URL for this VPC.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this VPC.- Returns:
- the id
-
getName
public String getName()
Gets the name. The name for this VPC. The name is unique across all VPCs in the region.- Returns:
- the name
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this VPC.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getStatus
public String getStatus()
Gets the status. The status of this VPC. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.- Returns:
- the status
-
-