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