Package com.ibm.cloud.is.vpc.v1.model
Class DefaultSecurityGroup
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.DefaultSecurityGroup
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class DefaultSecurityGroup extends com.ibm.cloud.sdk.core.service.model.GenericModelDefaultSecurityGroup.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.StringgetHref()Gets the href.StringgetId()Gets the id.StringgetName()Gets the name.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.List<SecurityGroupRule>getRules()Gets the rules.List<SecurityGroupTargetReference>getTargets()Gets the targets.VPCReferencegetVpc()Gets the vpc.
-
-
-
Method Detail
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that this security group was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The security group's CRN.- Returns:
- the crn
-
getHref
public String getHref()
Gets the href. The security group's canonical URL.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this security group.- Returns:
- the id
-
getName
public String getName()
Gets the name. The name for the default security group for a VPC. The name will be a hyphenated list of randomly-selected words at creation, but may changed.- Returns:
- the name
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this security group.- Returns:
- the resourceGroup
-
getRules
public List<SecurityGroupRule> getRules()
Gets the rules. The rules for the default security group for a VPC. Defaults to allowing all outbound traffic, and allowing all inbound traffic from other interfaces in the VPC's default security group. Rules for the default security group may be changed, added or removed.- Returns:
- the rules
-
getTargets
public List<SecurityGroupTargetReference> getTargets()
Gets the targets. The targets for this security group.- Returns:
- the targets
-
getVpc
public VPCReference getVpc()
Gets the vpc. The VPC this security group resides in.- Returns:
- the vpc
-
-