FirewallPolicyKubeSelectorGroupProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.FirewallPolicyKubeSelectorGroupProperties

Implements

public final class FirewallPolicyKubeSelectorGroupProperties
implements JsonSerializable<FirewallPolicyKubeSelectorGroupProperties>

Properties of the Kubernetes Selector Group.

Constructor Summary

Constructor Description
FirewallPolicyKubeSelectorGroupProperties()

Creates an instance of FirewallPolicyKubeSelectorGroupProperties class.

Method Summary

Modifier and Type Method and Description
static FirewallPolicyKubeSelectorGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyKubeSelectorGroupProperties from the JsonReader.

KubeLabelSelector namespaceSelector()

Get the namespaceSelector property: Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.

KubeLabelSelector podSelector()

Get the podSelector property: Kubernetes Pod selector for matching pods in the Kubernetes cluster.

CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the firewall policy Kubernetes selector group resource.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

FirewallPolicyKubeSelectorGroupProperties withNamespaceSelector(KubeLabelSelector namespaceSelector)

Set the namespaceSelector property: Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.

FirewallPolicyKubeSelectorGroupProperties withPodSelector(KubeLabelSelector podSelector)

Set the podSelector property: Kubernetes Pod selector for matching pods in the Kubernetes cluster.

Methods inherited from java.lang.Object

Constructor Details

FirewallPolicyKubeSelectorGroupProperties

public FirewallPolicyKubeSelectorGroupProperties()

Creates an instance of FirewallPolicyKubeSelectorGroupProperties class.

Method Details

fromJson

public static FirewallPolicyKubeSelectorGroupProperties fromJson(JsonReader jsonReader)

Reads an instance of FirewallPolicyKubeSelectorGroupProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FirewallPolicyKubeSelectorGroupProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FirewallPolicyKubeSelectorGroupProperties.

namespaceSelector

public KubeLabelSelector namespaceSelector()

Get the namespaceSelector property: Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.

Returns:

the namespaceSelector value.

podSelector

public KubeLabelSelector podSelector()

Get the podSelector property: Kubernetes Pod selector for matching pods in the Kubernetes cluster.

Returns:

the podSelector value.

provisioningState

public CommonProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the firewall policy Kubernetes selector group resource.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNamespaceSelector

public FirewallPolicyKubeSelectorGroupProperties withNamespaceSelector(KubeLabelSelector namespaceSelector)

Set the namespaceSelector property: Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster.

Parameters:

namespaceSelector - the namespaceSelector value to set.

Returns:

the FirewallPolicyKubeSelectorGroupProperties object itself.

withPodSelector

public FirewallPolicyKubeSelectorGroupProperties withPodSelector(KubeLabelSelector podSelector)

Set the podSelector property: Kubernetes Pod selector for matching pods in the Kubernetes cluster.

Parameters:

podSelector - the podSelector value to set.

Returns:

the FirewallPolicyKubeSelectorGroupProperties object itself.

Applies to