Class NamespacedPolicyTargetReference
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1alpha2.NamespacedPolicyTargetReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NamespacedPolicyTargetReferenceBuilder>
,io.fabric8.kubernetes.api.model.KubernetesResource
,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NamespacedPolicyTargetReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<NamespacedPolicyTargetReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NamespacedPolicyTargetReference identifies an API object to apply a direct or inherited policy to, potentially in a different namespace. This should only be used as part of Policy resources that need to be able to target resources in different namespaces. For more information on how this policy attachment model works, and a sample Policy resource, refer to the policy attachment documentation for Gateway API.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamespacedPolicyTargetReference()
No args constructor for use in serializationNamespacedPolicyTargetReference(String group, String kind, String name, String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespacedPolicyTargetReferenceBuilder
edit()
Map<String,Object>
getAdditionalProperties()
String
getGroup()
Group is the group of the target resource.String
getKind()
Kind is kind of the target resource.String
getName()
Name is the name of the target resource.String
getNamespace()
Namespace is the namespace of the referent.void
setAdditionalProperties(Map<String,Object> additionalProperties)
void
setAdditionalProperty(String name, Object value)
void
setGroup(String group)
Group is the group of the target resource.void
setKind(String kind)
Kind is kind of the target resource.void
setName(String name)
Name is the name of the target resource.void
setNamespace(String namespace)
Namespace is the namespace of the referent.NamespacedPolicyTargetReferenceBuilder
toBuilder()
-
-
-
Method Detail
-
getGroup
public String getGroup()
Group is the group of the target resource.
-
setGroup
public void setGroup(String group)
Group is the group of the target resource.
-
getKind
public String getKind()
Kind is kind of the target resource.
-
setKind
public void setKind(String kind)
Kind is kind of the target resource.
-
getName
public String getName()
Name is the name of the target resource.
-
setName
public void setName(String name)
Name is the name of the target resource.
-
getNamespace
public String getNamespace()
Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.
-
setNamespace
public void setNamespace(String namespace)
Namespace is the namespace of the referent. When unspecified, the local namespace is inferred. Even when policy targets a resource in a different namespace, it MUST only apply to traffic originating from the same namespace as the policy.
-
edit
public NamespacedPolicyTargetReferenceBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<NamespacedPolicyTargetReferenceBuilder>
-
toBuilder
public NamespacedPolicyTargetReferenceBuilder toBuilder()
-
-