Package io.fabric8.openshift.api.model
Class ScopeRestriction
- java.lang.Object
-
- io.fabric8.openshift.api.model.ScopeRestriction
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ScopeRestrictionBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ScopeRestriction extends Object implements io.fabric8.kubernetes.api.builder.Editable<ScopeRestrictionBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScopeRestriction()No args constructor for use in serializationScopeRestriction(ClusterRoleScopeRestriction clusterRole, List<String> literals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopeRestrictionBuilderedit()Map<String,Object>getAdditionalProperties()ClusterRoleScopeRestrictiongetClusterRole()ScopeRestriction describe one restriction on scopes.List<String>getLiterals()ExactValues means the scope has to match a particular set of strings exactlyvoidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetClusterRole(ClusterRoleScopeRestriction clusterRole)ScopeRestriction describe one restriction on scopes.voidsetLiterals(List<String> literals)ExactValues means the scope has to match a particular set of strings exactlyScopeRestrictionBuildertoBuilder()
-
-
-
Constructor Detail
-
ScopeRestriction
public ScopeRestriction()
No args constructor for use in serialization
-
ScopeRestriction
public ScopeRestriction(ClusterRoleScopeRestriction clusterRole, List<String> literals)
-
-
Method Detail
-
getClusterRole
public ClusterRoleScopeRestriction getClusterRole()
ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.
-
setClusterRole
public void setClusterRole(ClusterRoleScopeRestriction clusterRole)
ScopeRestriction describe one restriction on scopes. Exactly one option must be non-nil.
-
getLiterals
public List<String> getLiterals()
ExactValues means the scope has to match a particular set of strings exactly
-
setLiterals
public void setLiterals(List<String> literals)
ExactValues means the scope has to match a particular set of strings exactly
-
edit
public ScopeRestrictionBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ScopeRestrictionBuilder>
-
toBuilder
public ScopeRestrictionBuilder toBuilder()
-
-