Package com.exoscale.sdk.model
Class SecurityGroupResource
- java.lang.Object
-
- com.exoscale.sdk.model.SecurityGroupResource
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class SecurityGroupResource extends Object
Security Group
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityGroupResource.VisibilityEnum
Whether this points to a public security group.
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_NAME
static String
JSON_PROPERTY_VISIBILITY
-
Constructor Summary
Constructors Constructor Description SecurityGroupResource()
SecurityGroupResource(UUID id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Return true if this security-group-resource object is equal to o.UUID
getId()
Security Group IDString
getName()
Security Group nameSecurityGroupResource.VisibilityEnum
getVisibility()
Whether this points to a public security group.int
hashCode()
SecurityGroupResource
name(String name)
void
setName(String name)
void
setVisibility(SecurityGroupResource.VisibilityEnum visibility)
String
toString()
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.SecurityGroupResource
visibility(SecurityGroupResource.VisibilityEnum visibility)
-
-
-
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_VISIBILITY
public static final String JSON_PROPERTY_VISIBILITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityGroupResource
public SecurityGroupResource()
-
SecurityGroupResource
public SecurityGroupResource(UUID id)
-
-
Method Detail
-
getId
@Nullable public UUID getId()
Security Group ID- Returns:
- id
-
name
public SecurityGroupResource name(String name)
-
getName
@Nullable public String getName()
Security Group name- Returns:
- name
-
setName
public void setName(String name)
-
visibility
public SecurityGroupResource visibility(SecurityGroupResource.VisibilityEnum visibility)
-
getVisibility
@Nullable public SecurityGroupResource.VisibilityEnum getVisibility()
Whether this points to a public security group. This is only valid when in the context of a rule addition which uses a public security group as a source or destination.- Returns:
- visibility
-
setVisibility
public void setVisibility(SecurityGroupResource.VisibilityEnum visibility)
-
equals
public boolean equals(Object o)
Return true if this security-group-resource object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-