Class NonResourcePolicyRule
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.flowcontrol.v1alpha1.NonResourcePolicyRule
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class NonResourcePolicyRule extends java.lang.Object implements com.marcnuri.yakc.model.Model
NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NonResourcePolicyRule.Builder
-
Constructor Summary
Constructors Constructor Description NonResourcePolicyRule()
NonResourcePolicyRule(@NonNull java.util.List<java.lang.String> nonResourceURLs, @NonNull java.util.List<java.lang.String> verbs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NonResourcePolicyRule.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.util.List<java.lang.String>
getNonResourceURLs()
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.@NonNull java.util.List<java.lang.String>
getVerbs()
`verbs` is a list of matching verbs and may not be empty.int
hashCode()
void
setNonResourceURLs(@NonNull java.util.List<java.lang.String> nonResourceURLs)
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty.void
setVerbs(@NonNull java.util.List<java.lang.String> verbs)
`verbs` is a list of matching verbs and may not be empty.NonResourcePolicyRule.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static NonResourcePolicyRule.Builder builder()
-
toBuilder
public NonResourcePolicyRule.Builder toBuilder()
-
getNonResourceURLs
@NonNull public @NonNull java.util.List<java.lang.String> getNonResourceURLs()
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:- "/healthz" is legal
- "/hea*" is illegal
- "/hea" is legal but matches nothing
- "/hea/*" also matches nothing
- "/healthz/*" matches all per-component health checks.
"*" matches all non-resource urls. if it is present, it must be the only entry. Required.
-
getVerbs
@NonNull public @NonNull java.util.List<java.lang.String> getVerbs()
`verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
-
setNonResourceURLs
public void setNonResourceURLs(@NonNull @NonNull java.util.List<java.lang.String> nonResourceURLs)
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example:- "/healthz" is legal
- "/hea*" is illegal
- "/hea" is legal but matches nothing
- "/hea/*" also matches nothing
- "/healthz/*" matches all per-component health checks.
"*" matches all non-resource urls. if it is present, it must be the only entry. Required.
-
setVerbs
public void setVerbs(@NonNull @NonNull java.util.List<java.lang.String> verbs)
`verbs` is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-