Package com.ibm.cloud.is.vpc.v1.model
Class InstanceGroup
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.InstanceGroup
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class InstanceGroup extends com.ibm.cloud.sdk.core.service.model.GenericModelInstanceGroup.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceGroup.StatusThe status of the instance group - `deleting`: Group is being deleted - `healthy`: Group has `membership_count` instances - `scaling`: Instances in the group are being created or deleted to reach `membership_count` - `unhealthy`: Group is unable to reach `membership_count` instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetApplicationPort()Gets the applicationPort.DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.StringgetHref()Gets the href.StringgetId()Gets the id.InstanceTemplateReferencegetInstanceTemplate()Gets the instanceTemplate.LoadBalancerPoolReferencegetLoadBalancerPool()Gets the loadBalancerPool.List<InstanceGroupManagerReference>getManagers()Gets the managers.LonggetMembershipCount()Gets the membershipCount.StringgetName()Gets the name.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetStatus()Gets the status.List<SubnetReference>getSubnets()Gets the subnets.DategetUpdatedAt()Gets the updatedAt.VPCReferencegetVpc()Gets the vpc.
-
-
-
Method Detail
-
getApplicationPort
public Long getApplicationPort()
Gets the applicationPort. The port used for new load balancer pool members created by this instance group. This property will be present if and only if `load_balancer_pool` is present.- Returns:
- the applicationPort
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the instance group was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this instance group.- Returns:
- the crn
-
getHref
public String getHref()
Gets the href. The URL for this instance group.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this instance group.- Returns:
- the id
-
getInstanceTemplate
public InstanceTemplateReference getInstanceTemplate()
Gets the instanceTemplate. The template used to create new instances for this group.- Returns:
- the instanceTemplate
-
getLoadBalancerPool
public LoadBalancerPoolReference getLoadBalancerPool()
Gets the loadBalancerPool. If present, the load balancer pool this instance group manages. A pool member will be created for each instance created by this group.- Returns:
- the loadBalancerPool
-
getManagers
public List<InstanceGroupManagerReference> getManagers()
Gets the managers. The managers for the instance group.- Returns:
- the managers
-
getMembershipCount
public Long getMembershipCount()
Gets the membershipCount. The number of instances in the instance group.- Returns:
- the membershipCount
-
getName
public String getName()
Gets the name. The name for this instance group. The name is unique across all instance groups in the region.- Returns:
- the name
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup.- Returns:
- the resourceGroup
-
getStatus
public String getStatus()
Gets the status. The status of the instance group - `deleting`: Group is being deleted - `healthy`: Group has `membership_count` instances - `scaling`: Instances in the group are being created or deleted to reach `membership_count` - `unhealthy`: Group is unable to reach `membership_count` instances.- Returns:
- the status
-
getSubnets
public List<SubnetReference> getSubnets()
Gets the subnets. The subnets to use when creating new instances.- Returns:
- the subnets
-
getUpdatedAt
public Date getUpdatedAt()
Gets the updatedAt. The date and time that the instance group was updated.- Returns:
- the updatedAt
-
getVpc
public VPCReference getVpc()
Gets the vpc. The VPC the instance group resides in.- Returns:
- the vpc
-
-