Class LocalPolicyTargetReferenceWithSectionName

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<LocalPolicyTargetReferenceWithSectionNameBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class LocalPolicyTargetReferenceWithSectionName
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<LocalPolicyTargetReferenceWithSectionNameBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    LocalPolicyTargetReferenceWithSectionName identifies an API object to apply a direct policy to. This should be used as part of Policy resources that can target single resources. For more information on how this policy attachment mode works, and a sample Policy resource, refer to the policy attachment documentation for Gateway API.


    Note: This should only be used for direct policy attachment when references to SectionName are actually needed. In all other cases, LocalPolicyTargetReference should be used.

    See Also:
    Serialized Form
    • Constructor Detail

      • LocalPolicyTargetReferenceWithSectionName

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

        public LocalPolicyTargetReferenceWithSectionName​(String group,
                                                         String kind,
                                                         String name,
                                                         String sectionName)
    • 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.
      • getSectionName

        public String getSectionName()
        SectionName is the name of a section within the target resource. When unspecified, this targetRef targets the entire resource. In the following resources, SectionName is interpreted as the following:


        * Gateway: Listener name * HTTPRoute: HTTPRouteRule name * Service: Port name


        If a SectionName is specified, but does not exist on the targeted object, the Policy must fail to attach, and the policy implementation should record a `ResolvedRefs` or similar Condition in the Policy's status.

      • setSectionName

        public void setSectionName​(String sectionName)
        SectionName is the name of a section within the target resource. When unspecified, this targetRef targets the entire resource. In the following resources, SectionName is interpreted as the following:


        * Gateway: Listener name * HTTPRoute: HTTPRouteRule name * Service: Port name


        If a SectionName is specified, but does not exist on the targeted object, the Policy must fail to attach, and the policy implementation should record a `ResolvedRefs` or similar Condition in the Policy's status.

      • getAdditionalProperties

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

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

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