Class V1NetworkPolicy
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1NetworkPolicy
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1NetworkPolicy
extends Object
NetworkPolicy describes what network traffic is allowed for a set of Pods
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionapiVersion(String apiVersion) Set apiVersion in a chainable fashion.booleanAPIVersion defines the versioned schema of this representation of an object.getKind()Kind is a string value representing the REST resource this object represents.getSpec()inthashCode()Set kind in a chainable fashion.metadata(V1ObjectMeta metadata) Set metadata in a chainable fashion.voidsetApiVersion(String apiVersion) Set the apiVersion property valuevoidSet the kind property valuevoidsetMetadata(V1ObjectMeta metadata) Set the metadata property valuevoidsetSpec(V1NetworkPolicySpec spec) Set the spec property valuevoidsetStatus(V1NetworkPolicyStatus status) Set the status property valuespec(V1NetworkPolicySpec spec) Set spec in a chainable fashion.status(V1NetworkPolicyStatus status) Set status in a chainable fashion.toString()
- 
Field Details- 
JSON_PROPERTY_API_VERSION- See Also:
 
- 
JSON_PROPERTY_KIND- See Also:
 
- 
JSON_PROPERTY_METADATA- See Also:
 
- 
JSON_PROPERTY_SPEC- See Also:
 
- 
JSON_PROPERTY_STATUS- See Also:
 
 
- 
- 
Constructor Details- 
V1NetworkPolicypublic V1NetworkPolicy()
 
- 
- 
Method Details- 
getApiVersionAPIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Returns:
- the apiVersion property value
 
- 
setApiVersionSet the apiVersion property value
- 
apiVersionSet apiVersion in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicy for chaining.
 
- 
getKindKind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Returns:
- the kind property value
 
- 
setKindSet the kind property value
- 
kindSet kind in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicy for chaining.
 
- 
getMetadata- Returns:
- the metadata property value
 
- 
setMetadataSet the metadata property value
- 
metadataSet metadata in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicy for chaining.
 
- 
getSpec- Returns:
- the spec property value
 
- 
setSpecSet the spec property value
- 
specSet spec in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicy for chaining.
 
- 
getStatus- Returns:
- the status property value
 
- 
setStatusSet the status property value
- 
statusSet status in a chainable fashion.- Returns:
- The same instance of V1NetworkPolicy for chaining.
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-