Class LocalPolicyTargetReferenceWithSectionName
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1alpha2.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 Summary
Constructors Constructor Description LocalPolicyTargetReferenceWithSectionName()
No args constructor for use in serializationLocalPolicyTargetReferenceWithSectionName(String group, String kind, String name, String sectionName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalPolicyTargetReferenceWithSectionNameBuilder
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
getSectionName()
SectionName is the name of a section within the target resource.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
setSectionName(String sectionName)
SectionName is the name of a section within the target resource.LocalPolicyTargetReferenceWithSectionNameBuilder
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.
-
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.
-
edit
public LocalPolicyTargetReferenceWithSectionNameBuilder edit()
- Specified by:
edit
in interfaceio.fabric8.kubernetes.api.builder.Editable<LocalPolicyTargetReferenceWithSectionNameBuilder>
-
toBuilder
public LocalPolicyTargetReferenceWithSectionNameBuilder toBuilder()
-
-