@Generated(value="org.jsonschema2pojo") public class ClusterPolicy extends Object implements HasMetadata
Modifier and Type | Class and Description |
---|---|
static class |
ClusterPolicy.ApiVersion |
Constructor and Description |
---|
ClusterPolicy()
No args constructor for use in serialization
|
ClusterPolicy(ClusterPolicy.ApiVersion apiVersion,
String kind,
String lastModified,
ObjectMeta metadata,
List<NamedClusterRole> roles) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties() |
ClusterPolicy.ApiVersion |
getApiVersion()
(Required)
|
String |
getKind()
(Required)
|
String |
getLastModified()
last time any part of the object was created
|
ObjectMeta |
getMetadata() |
List<NamedClusterRole> |
getRoles()
all the roles held by this policy
|
void |
setAdditionalProperty(String name,
Object value) |
void |
setApiVersion(ClusterPolicy.ApiVersion apiVersion)
(Required)
|
void |
setKind(String kind)
(Required)
|
void |
setLastModified(String lastModified)
last time any part of the object was created
|
void |
setMetadata(ObjectMeta metadata) |
void |
setRoles(List<NamedClusterRole> roles)
all the roles held by this policy
|
public ClusterPolicy()
public ClusterPolicy(ClusterPolicy.ApiVersion apiVersion, String kind, String lastModified, ObjectMeta metadata, List<NamedClusterRole> roles)
metadata
- apiVersion
- kind
- roles
- lastModified
- public ClusterPolicy.ApiVersion getApiVersion()
public void setApiVersion(ClusterPolicy.ApiVersion apiVersion)
apiVersion
- The apiVersionpublic String getKind()
getKind
in interface HasMetadata
public void setKind(String kind)
kind
- The kindpublic String getLastModified()
public void setLastModified(String lastModified)
lastModified
- The lastModifiedpublic ObjectMeta getMetadata()
getMetadata
in interface HasMetadata
public void setMetadata(ObjectMeta metadata)
setMetadata
in interface HasMetadata
metadata
- The metadatapublic List<NamedClusterRole> getRoles()
public void setRoles(List<NamedClusterRole> roles)
roles
- The rolesCopyright © 2011–2015 Red Hat. All rights reserved.