Class 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 Detail

      • NamespacedPolicyTargetReference

        public NamespacedPolicyTargetReference()
        No args constructor for use in serialization
      • NamespacedPolicyTargetReference

        public NamespacedPolicyTargetReference​(String group,
                                               String kind,
                                               String name,
                                               String namespace)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)