Package com.exoscale.sdk.model
Class SecurityGroupRule
- java.lang.Object
-
- com.exoscale.sdk.model.SecurityGroupRule
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class SecurityGroupRule extends Object
Security Group rule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecurityGroupRule.FlowDirectionEnum
Network flow direction to matchstatic class
SecurityGroupRule.ProtocolEnum
Network protocol
-
Field Summary
Fields Modifier and Type Field Description static String
JSON_PROPERTY_DESCRIPTION
static String
JSON_PROPERTY_END_PORT
static String
JSON_PROPERTY_FLOW_DIRECTION
static String
JSON_PROPERTY_ICMP
static String
JSON_PROPERTY_ID
static String
JSON_PROPERTY_NETWORK
static String
JSON_PROPERTY_PROTOCOL
static String
JSON_PROPERTY_SECURITY_GROUP
static String
JSON_PROPERTY_START_PORT
-
Constructor Summary
Constructors Constructor Description SecurityGroupRule()
SecurityGroupRule(UUID id)
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_PORT
public static final String JSON_PROPERTY_START_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PROTOCOL
public static final String JSON_PROPERTY_PROTOCOL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ICMP
public static final String JSON_PROPERTY_ICMP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_END_PORT
public static final String JSON_PROPERTY_END_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECURITY_GROUP
public static final String JSON_PROPERTY_SECURITY_GROUP
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ID
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK
public static final String JSON_PROPERTY_NETWORK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLOW_DIRECTION
public static final String JSON_PROPERTY_FLOW_DIRECTION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SecurityGroupRule
public SecurityGroupRule()
-
SecurityGroupRule
public SecurityGroupRule(UUID id)
-
-
Method Detail
-
description
public SecurityGroupRule description(String description)
-
getDescription
@Nullable public String getDescription()
Security Group rule description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
startPort
public SecurityGroupRule startPort(Long startPort)
-
getStartPort
@Nullable public Long getStartPort()
Start port of the range minimum: 1 maximum: 65535- Returns:
- startPort
-
setStartPort
public void setStartPort(Long startPort)
-
protocol
public SecurityGroupRule protocol(SecurityGroupRule.ProtocolEnum protocol)
-
getProtocol
@Nullable public SecurityGroupRule.ProtocolEnum getProtocol()
Network protocol- Returns:
- protocol
-
setProtocol
public void setProtocol(SecurityGroupRule.ProtocolEnum protocol)
-
icmp
public SecurityGroupRule icmp(SecurityGroupRuleIcmp icmp)
-
getIcmp
@Nullable public SecurityGroupRuleIcmp getIcmp()
Get icmp- Returns:
- icmp
-
setIcmp
public void setIcmp(SecurityGroupRuleIcmp icmp)
-
endPort
public SecurityGroupRule endPort(Long endPort)
-
getEndPort
@Nullable public Long getEndPort()
End port of the range minimum: 1 maximum: 65535- Returns:
- endPort
-
setEndPort
public void setEndPort(Long endPort)
-
securityGroup
public SecurityGroupRule securityGroup(SecurityGroupResource securityGroup)
-
getSecurityGroup
@Nullable public SecurityGroupResource getSecurityGroup()
Get securityGroup- Returns:
- securityGroup
-
setSecurityGroup
public void setSecurityGroup(SecurityGroupResource securityGroup)
-
getId
@Nullable public UUID getId()
Security Group rule ID- Returns:
- id
-
network
public SecurityGroupRule network(String network)
-
getNetwork
@Nullable public String getNetwork()
CIDR-formatted network allowed- Returns:
- network
-
setNetwork
public void setNetwork(String network)
-
flowDirection
public SecurityGroupRule flowDirection(SecurityGroupRule.FlowDirectionEnum flowDirection)
-
getFlowDirection
@Nullable public SecurityGroupRule.FlowDirectionEnum getFlowDirection()
Network flow direction to match- Returns:
- flowDirection
-
setFlowDirection
public void setFlowDirection(SecurityGroupRule.FlowDirectionEnum flowDirection)
-
equals
public boolean equals(Object o)
Return true if this security-group-rule object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-