public class PolicyFluentImpl<A extends PolicyFluent<A>> extends BaseFluent<A> implements PolicyFluent<A>
Modifier and Type | Class and Description |
---|---|
class |
PolicyFluentImpl.MetadataNestedImpl<N> |
class |
PolicyFluentImpl.RolesNestedImpl<N> |
PolicyFluent.MetadataNested<N>, PolicyFluent.RolesNested<N>
_visitables
Constructor and Description |
---|
PolicyFluentImpl() |
PolicyFluentImpl(Policy instance) |
Modifier and Type | Method and Description |
---|---|
PolicyFluent.RolesNested<A> |
addNewRole() |
PolicyFluent.RolesNested<A> |
addNewRoleLike(NamedRole item) |
A |
addToRoles(NamedRole... items) |
PolicyFluent.MetadataNested<A> |
editMetadata() |
boolean |
equals(Object o) |
String |
getApiVersion() |
String |
getKind() |
String |
getLastModified() |
ObjectMeta |
getMetadata() |
List<NamedRole> |
getRoles() |
A |
removeFromRoles(NamedRole... items) |
A |
withApiVersion(String apiVersion) |
A |
withKind(String kind) |
A |
withLastModified(String lastModified) |
A |
withMetadata(ObjectMeta metadata) |
PolicyFluent.MetadataNested<A> |
withNewMetadata() |
PolicyFluent.MetadataNested<A> |
withNewMetadataLike(ObjectMeta item) |
A |
withRoles(List<NamedRole> roles) |
A |
withRoles(NamedRole... roles) |
public PolicyFluentImpl()
public PolicyFluentImpl(Policy instance)
public String getApiVersion()
getApiVersion
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withApiVersion(String apiVersion)
withApiVersion
in interface PolicyFluent<A extends PolicyFluent<A>>
public String getKind()
getKind
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withKind(String kind)
withKind
in interface PolicyFluent<A extends PolicyFluent<A>>
public String getLastModified()
getLastModified
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withLastModified(String lastModified)
withLastModified
in interface PolicyFluent<A extends PolicyFluent<A>>
public ObjectMeta getMetadata()
getMetadata
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withMetadata(ObjectMeta metadata)
withMetadata
in interface PolicyFluent<A extends PolicyFluent<A>>
public PolicyFluent.MetadataNested<A> withNewMetadata()
withNewMetadata
in interface PolicyFluent<A extends PolicyFluent<A>>
public PolicyFluent.MetadataNested<A> withNewMetadataLike(ObjectMeta item)
withNewMetadataLike
in interface PolicyFluent<A extends PolicyFluent<A>>
public PolicyFluent.MetadataNested<A> editMetadata()
editMetadata
in interface PolicyFluent<A extends PolicyFluent<A>>
public A addToRoles(NamedRole... items)
addToRoles
in interface PolicyFluent<A extends PolicyFluent<A>>
public A removeFromRoles(NamedRole... items)
removeFromRoles
in interface PolicyFluent<A extends PolicyFluent<A>>
public List<NamedRole> getRoles()
getRoles
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withRoles(List<NamedRole> roles)
withRoles
in interface PolicyFluent<A extends PolicyFluent<A>>
public A withRoles(NamedRole... roles)
withRoles
in interface PolicyFluent<A extends PolicyFluent<A>>
public PolicyFluent.RolesNested<A> addNewRole()
addNewRole
in interface PolicyFluent<A extends PolicyFluent<A>>
public PolicyFluent.RolesNested<A> addNewRoleLike(NamedRole item)
addNewRoleLike
in interface PolicyFluent<A extends PolicyFluent<A>>
Copyright © 2011–2016 Red Hat. All rights reserved.