Package com.exoscale.sdk.model
Class AddRuleToSecurityGroupRequest
- java.lang.Object
-
- com.exoscale.sdk.model.AddRuleToSecurityGroupRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.4.0") public class AddRuleToSecurityGroupRequest extends Object
AddRuleToSecurityGroupRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddRuleToSecurityGroupRequest.FlowDirectionEnum
Network flow direction to matchstatic class
AddRuleToSecurityGroupRequest.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_NETWORK
static String
JSON_PROPERTY_PROTOCOL
static String
JSON_PROPERTY_SECURITY_GROUP
static String
JSON_PROPERTY_START_PORT
-
Constructor Summary
Constructors Constructor Description AddRuleToSecurityGroupRequest()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_FLOW_DIRECTION
public static final String JSON_PROPERTY_FLOW_DIRECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DESCRIPTION
public static final String JSON_PROPERTY_DESCRIPTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NETWORK
public static final String JSON_PROPERTY_NETWORK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SECURITY_GROUP
public static final String JSON_PROPERTY_SECURITY_GROUP
- 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_START_PORT
public static final String JSON_PROPERTY_START_PORT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_END_PORT
public static final String JSON_PROPERTY_END_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
flowDirection
public AddRuleToSecurityGroupRequest flowDirection(AddRuleToSecurityGroupRequest.FlowDirectionEnum flowDirection)
-
getFlowDirection
@Nonnull public AddRuleToSecurityGroupRequest.FlowDirectionEnum getFlowDirection()
Network flow direction to match- Returns:
- flowDirection
-
setFlowDirection
public void setFlowDirection(AddRuleToSecurityGroupRequest.FlowDirectionEnum flowDirection)
-
description
public AddRuleToSecurityGroupRequest description(String description)
-
getDescription
@Nullable public String getDescription()
Security Group rule description- Returns:
- description
-
setDescription
public void setDescription(String description)
-
network
public AddRuleToSecurityGroupRequest network(String network)
-
getNetwork
@Nullable public String getNetwork()
CIDR-formatted network allowed- Returns:
- network
-
setNetwork
public void setNetwork(String network)
-
securityGroup
public AddRuleToSecurityGroupRequest securityGroup(SecurityGroupResource securityGroup)
-
getSecurityGroup
@Nullable public SecurityGroupResource getSecurityGroup()
Get securityGroup- Returns:
- securityGroup
-
setSecurityGroup
public void setSecurityGroup(SecurityGroupResource securityGroup)
-
protocol
public AddRuleToSecurityGroupRequest protocol(AddRuleToSecurityGroupRequest.ProtocolEnum protocol)
-
getProtocol
@Nonnull public AddRuleToSecurityGroupRequest.ProtocolEnum getProtocol()
Network protocol- Returns:
- protocol
-
setProtocol
public void setProtocol(AddRuleToSecurityGroupRequest.ProtocolEnum protocol)
-
icmp
public AddRuleToSecurityGroupRequest icmp(AddRuleToSecurityGroupRequestIcmp icmp)
-
getIcmp
@Nullable public AddRuleToSecurityGroupRequestIcmp getIcmp()
Get icmp- Returns:
- icmp
-
setIcmp
public void setIcmp(AddRuleToSecurityGroupRequestIcmp icmp)
-
startPort
public AddRuleToSecurityGroupRequest 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)
-
endPort
public AddRuleToSecurityGroupRequest 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)
-
equals
public boolean equals(Object o)
Return true if this add_rule_to_security_group_request object is equal to o.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-