Class Subnet
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Subnet
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Subnet
extends Object
Subnet
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic SubnetCreate an instance of Subnet given an JSON stringGateway IP for this Network.@Valid LeaseRangeGet leaseRangeSubnet for this Network in CIDR form.inthashCode()leaseRange(LeaseRange leaseRange) voidsetGateway(String gateway) voidsetLeaseRange(LeaseRange leaseRange) voidtoJson()Convert an instance of Subnet to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_GATEWAY
- See Also:
-
SERIALIZED_NAME_LEASE_RANGE
- See Also:
-
SERIALIZED_NAME_SUBNET
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Subnet
public Subnet()
-
-
Method Details
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Subnet
-
fromJson
Create an instance of Subnet given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Subnet
- Throws:
IOException- if the JSON string is invalid with respect to Subnet
-
gateway
-
getGateway
Gateway IP for this Network.- Returns:
- gateway
-
setGateway
-
leaseRange
-
getLeaseRange
Get leaseRange- Returns:
- leaseRange
-
setLeaseRange
-
subnet
-
getSubnet
Subnet for this Network in CIDR form.- Returns:
- subnet
-
setSubnet
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of Subnet to an JSON string- Returns:
- JSON string
-