Class Subnet
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Subnet
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Subnet
extends Object
implements Serializable
Subnet
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object 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
-
toJson
Convert an instance of Subnet to an JSON string- Returns:
- JSON string
-