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.GenericModelVPC.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVPC.HealthStateThe health of this resource.static interfaceVPC.ResourceTypeThe resource type.static interfaceVPC.StatusThe status of this VPC.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.List<VPCCSESourceIP>getCseSourceIps()Gets the cseSourceIps.NetworkACLReferencegetDefaultNetworkAcl()Gets the defaultNetworkAcl.RoutingTableReferencegetDefaultRoutingTable()Gets the defaultRoutingTable.SecurityGroupReferencegetDefaultSecurityGroup()Gets the defaultSecurityGroup.VPCDNSgetDns()Gets the dns.List<VPCHealthReason>getHealthReasons()Gets the healthReasons.StringgetHealthState()Gets the healthState.StringgetHref()Gets the href.StringgetId()Gets the id.StringgetName()Gets the name.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetResourceType()Gets the resourceType.StringgetStatus()Gets the status.BooleanisClassicAccess()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). The enumerated reason code values for this property will expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the resource on which the unexpected reason code was encountered.- 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.- Returns:
- the status
-
-