Class V1Subject
java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1Subject
@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen")
public class V1Subject
extends Object
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet apiGroup in a chainable fashion.boolean
APIGroup holds the API group of the referenced subject.getKind()
Kind of object being referenced.getName()
Name of the object being referenced.Namespace of the referenced object.int
hashCode()
Set kind in a chainable fashion.Set name in a chainable fashion.Set namespace in a chainable fashion.void
setApiGroup
(String apiGroup) Set the apiGroup property valuevoid
Set the kind property valuevoid
Set the name property valuevoid
setNamespace
(String namespace) Set the namespace property valuetoString()
-
Field Details
-
JSON_PROPERTY_API_GROUP
- See Also:
-
JSON_PROPERTY_KIND
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_NAMESPACE
- See Also:
-
-
Constructor Details
-
V1Subject
-
-
Method Details
-
getApiGroup
APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.- Returns:
- the apiGroup property value
-
setApiGroup
Set the apiGroup property value -
apiGroup
Set apiGroup in a chainable fashion.- Returns:
- The same instance of V1Subject for chaining.
-
getKind
Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.- Returns:
- the kind property value
-
setKind
Set the kind property value -
kind
Set kind in a chainable fashion.- Returns:
- The same instance of V1Subject for chaining.
-
getName
Name of the object being referenced.- Returns:
- the name property value
-
setName
Set the name property value -
name
Set name in a chainable fashion.- Returns:
- The same instance of V1Subject for chaining.
-
getNamespace
Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.- Returns:
- the namespace property value
-
setNamespace
Set the namespace property value -
namespace
Set namespace in a chainable fashion.- Returns:
- The same instance of V1Subject for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-