@Generated(value="org.jsonschema2pojo") public class RoleBinding extends Object implements HasMetadata
Modifier and Type | Class and Description |
---|---|
static class |
RoleBinding.ApiVersion |
Constructor and Description |
---|
RoleBinding()
No args constructor for use in serialization
|
RoleBinding(RoleBinding.ApiVersion apiVersion,
List<String> groupNames,
String kind,
ObjectMeta metadata,
ObjectReference roleRef,
List<ObjectReference> subjects,
List<String> userNames) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
RoleBinding.ApiVersion |
getApiVersion()
(Required)
|
List<String> |
getGroupNames()
all the groups directly bound to the role
|
String |
getKind()
(Required)
|
ObjectMeta |
getMetadata() |
ObjectReference |
getRoleRef() |
List<ObjectReference> |
getSubjects()
references to subjects bound to the role.
|
List<String> |
getUserNames()
all the usernames directly bound to the role
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setApiVersion(RoleBinding.ApiVersion apiVersion)
(Required)
|
void |
setGroupNames(List<String> groupNames)
all the groups directly bound to the role
|
void |
setKind(String kind)
(Required)
|
void |
setMetadata(ObjectMeta metadata) |
void |
setRoleRef(ObjectReference roleRef) |
void |
setSubjects(List<ObjectReference> subjects)
references to subjects bound to the role.
|
void |
setUserNames(List<String> userNames)
all the usernames directly bound to the role
|
public RoleBinding()
public RoleBinding(RoleBinding.ApiVersion apiVersion, List<String> groupNames, String kind, ObjectMeta metadata, ObjectReference roleRef, List<ObjectReference> subjects, List<String> userNames)
apiVersion
- subjects
- groupNames
- userNames
- roleRef
- kind
- metadata
- public RoleBinding.ApiVersion getApiVersion()
public void setApiVersion(RoleBinding.ApiVersion apiVersion)
apiVersion
- The apiVersionpublic List<String> getGroupNames()
public void setGroupNames(List<String> groupNames)
groupNames
- The groupNamespublic String getKind()
getKind
in interface HasMetadata
public void setKind(String kind)
kind
- The kindpublic ObjectMeta getMetadata()
getMetadata
in interface HasMetadata
public void setMetadata(ObjectMeta metadata)
setMetadata
in interface HasMetadata
metadata
- The metadatapublic ObjectReference getRoleRef()
public void setRoleRef(ObjectReference roleRef)
roleRef
- The roleRefpublic List<ObjectReference> getSubjects()
public void setSubjects(List<ObjectReference> subjects)
subjects
- The subjectspublic List<String> getUserNames()
public void setUserNames(List<String> userNames)
userNames
- The userNamesCopyright © 2011–2015 Red Hat. All rights reserved.