@Generated(value="org.jsonschema2pojo") public class ClusterRole extends Object implements HasMetadata
Modifier and Type | Class and Description |
---|---|
static class |
ClusterRole.ApiVersion |
Constructor and Description |
---|
ClusterRole()
No args constructor for use in serialization
|
ClusterRole(ClusterRole.ApiVersion apiVersion,
String kind,
ObjectMeta metadata,
List<PolicyRule> rules) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
ClusterRole.ApiVersion |
getApiVersion()
(Required)
|
String |
getKind()
(Required)
|
ObjectMeta |
getMetadata() |
List<PolicyRule> |
getRules()
list of policy rules
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setApiVersion(ClusterRole.ApiVersion apiVersion)
(Required)
|
void |
setKind(String kind)
(Required)
|
void |
setMetadata(ObjectMeta metadata) |
void |
setRules(List<PolicyRule> rules)
list of policy rules
|
public ClusterRole()
public ClusterRole(ClusterRole.ApiVersion apiVersion, String kind, ObjectMeta metadata, List<PolicyRule> rules)
apiVersion
- rules
- kind
- metadata
- public ClusterRole.ApiVersion getApiVersion()
public void setApiVersion(ClusterRole.ApiVersion apiVersion)
apiVersion
- The apiVersionpublic 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 List<PolicyRule> getRules()
public void setRules(List<PolicyRule> rules)
rules
- The rulesCopyright © 2011–2015 Red Hat. All rights reserved.