Package com.ibm.cloud.is.vpc.v1.model
Class SecurityGroup
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.SecurityGroup
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SecurityGroup extends com.ibm.cloud.sdk.core.service.model.GenericModelSecurityGroup.
-
-
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 this security group. The name is unique across all security groups for the VPC.- 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 this security group. If no rules exist, all traffic will be denied.- 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
-
-