Package io.fabric8.openshift.api.model
Class ServiceAccountReference
- java.lang.Object
-
- io.fabric8.openshift.api.model.ServiceAccountReference
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ServiceAccountReferenceBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ServiceAccountReference extends Object implements io.fabric8.kubernetes.api.builder.Editable<ServiceAccountReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ServiceAccountReference specifies a service account and namespace by their names.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountReference()No args constructor for use in serializationServiceAccountReference(String name, String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceAccountReferenceBuilderedit()Map<String,Object>getAdditionalProperties()StringgetName()name is the name of the service account.StringgetNamespace()namespace is the namespace of the service account.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetName(String name)name is the name of the service account.voidsetNamespace(String namespace)namespace is the namespace of the service account.ServiceAccountReferenceBuildertoBuilder()
-
-
-
Method Detail
-
getName
public String getName()
name is the name of the service account.
-
setName
public void setName(String name)
name is the name of the service account.
-
getNamespace
public String getNamespace()
namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used.
-
setNamespace
public void setNamespace(String namespace)
namespace is the namespace of the service account. Service accounts from inside the whitelisted namespaces are allowed to be bound to roles. If Namespace is empty, then the namespace of the RoleBindingRestriction in which the ServiceAccountReference is embedded is used.
-
edit
public ServiceAccountReferenceBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ServiceAccountReferenceBuilder>
-
toBuilder
public ServiceAccountReferenceBuilder toBuilder()
-
-