Package com.exoscale.sdk.model
Class SecurityGroup
- java.lang.Object
-
- com.exoscale.sdk.model.SecurityGroup
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class SecurityGroup extends Object
Security Group
-
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_DESCRIPTION
static String
JSON_PROPERTY_EXTERNAL_SOURCES
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_RULES
-
Constructor Summary
Constructors Constructor Description SecurityGroup()
SecurityGroup(UUID id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroup
addExternalSourcesItem(String externalSourcesItem)
SecurityGroup
addRulesItem(SecurityGroupRule rulesItem)
SecurityGroup
description(String description)
boolean
equals(Object o)
Return true if this security-group object is equal to o.SecurityGroup
externalSources(Set<String> externalSources)
String
getDescription()
Security Group descriptionSet<String>
getExternalSources()
Security Group external sourcesUUID
getId()
Security Group IDString
getName()
Security Group nameSet<SecurityGroupRule>
getRules()
Security Group rulesint
hashCode()
SecurityGroup
name(String name)
SecurityGroup
rules(Set<SecurityGroupRule> rules)
void
setDescription(String description)
void
setExternalSources(Set<String> externalSources)
void
setName(String name)
void
setRules(Set<SecurityGroupRule> rules)
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXTERNAL_SOURCES
public static final String JSON_PROPERTY_EXTERNAL_SOURCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RULES
public static final String JSON_PROPERTY_RULES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityGroup
public SecurityGroup()
-
SecurityGroup
public SecurityGroup(UUID id)
-
-
Method Detail
-
getId
@Nullable public UUID getId()
Security Group ID- Returns:
- id
-
name
public SecurityGroup name(String name)
-
getName
@Nullable public String getName()
Security Group name- Returns:
- name
-
setName
public void setName(String name)
-
description
public SecurityGroup description(String description)
-
getDescription
@Nullable public String getDescription()
Security Group description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
externalSources
public SecurityGroup externalSources(Set<String> externalSources)
-
addExternalSourcesItem
public SecurityGroup addExternalSourcesItem(String externalSourcesItem)
-
getExternalSources
@Nullable public Set<String> getExternalSources()
Security Group external sources- Returns:
- externalSources
-
rules
public SecurityGroup rules(Set<SecurityGroupRule> rules)
-
addRulesItem
public SecurityGroup addRulesItem(SecurityGroupRule rulesItem)
-
getRules
@Nullable public Set<SecurityGroupRule> getRules()
Security Group rules- Returns:
- rules
-
setRules
public void setRules(Set<SecurityGroupRule> rules)
-
equals
public boolean equals(Object o)
Return true if this security-group object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-