public class SecurityGroup extends AbstractModel
Constructor and Description |
---|
SecurityGroup() |
SecurityGroup(SecurityGroup source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCreatedTime()
Get Security group creation time.
|
Boolean |
getIsDefault()
Get Whether it is the default security group (which cannot be deleted).
|
String |
getProjectId()
Get The project id is 0 by default.
|
String |
getSecurityGroupDesc()
Get The remarks for the security group.
|
String |
getSecurityGroupId()
Get The security group instance ID, such as `sg-ohuuioma`.
|
String |
getSecurityGroupName()
Get Security group can be named freely, but cannot exceed 60 characters.
|
Tag[] |
getTagSet()
Get Tag key-value pairs.
|
String |
getUpdateTime()
Get Security group update time.
|
void |
setCreatedTime(String CreatedTime)
Set Security group creation time.
|
void |
setIsDefault(Boolean IsDefault)
Set Whether it is the default security group (which cannot be deleted).
|
void |
setProjectId(String ProjectId)
Set The project id is 0 by default.
|
void |
setSecurityGroupDesc(String SecurityGroupDesc)
Set The remarks for the security group.
|
void |
setSecurityGroupId(String SecurityGroupId)
Set The security group instance ID, such as `sg-ohuuioma`.
|
void |
setSecurityGroupName(String SecurityGroupName)
Set Security group can be named freely, but cannot exceed 60 characters.
|
void |
setTagSet(Tag[] TagSet)
Set Tag key-value pairs.
|
void |
setUpdateTime(String UpdateTime)
Set Security group update time.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SecurityGroup()
public SecurityGroup(SecurityGroup source)
public String getSecurityGroupId()
public void setSecurityGroupId(String SecurityGroupId)
SecurityGroupId
- The security group instance ID, such as `sg-ohuuioma`.public String getSecurityGroupName()
public void setSecurityGroupName(String SecurityGroupName)
SecurityGroupName
- Security group can be named freely, but cannot exceed 60 characters.public String getSecurityGroupDesc()
public void setSecurityGroupDesc(String SecurityGroupDesc)
SecurityGroupDesc
- The remarks for the security group. The maximum length is 100 characters.public String getProjectId()
public void setProjectId(String ProjectId)
ProjectId
- The project id is 0 by default. You can query this in the project management page of the Qcloud console.public Boolean getIsDefault()
public void setIsDefault(Boolean IsDefault)
IsDefault
- Whether it is the default security group (which cannot be deleted).public String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime
- Security group creation time.public Tag[] getTagSet()
public void setTagSet(Tag[] TagSet)
TagSet
- Tag key-value pairs.public String getUpdateTime()
public void setUpdateTime(String UpdateTime)
UpdateTime
- Security group update time.
Note: this field may return `null`, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.