Package io.fabric8.kubernetes.api.model
Class ServiceAccountFluentImpl<A extends ServiceAccountFluent<A>>
- java.lang.Object
-
- io.fabric8.kubernetes.api.builder.BaseFluent<A>
-
- io.fabric8.kubernetes.api.model.ServiceAccountFluentImpl<A>
-
- All Implemented Interfaces:
Fluent<A>
,Visitable<A>
,ServiceAccountFluent<A>
- Direct Known Subclasses:
BaseKubernetesListFluentImpl.ServiceAccountItemsNestedImpl
,KubeSchemaFluentImpl.ServiceAccountNestedImpl
,NamedExtensionFluentImpl.ServiceAccountExtensionNestedImpl
,ServiceAccountBuilder
,ServiceAccountListFluentImpl.ItemsNestedImpl
,WatchEventFluentImpl.ServiceAccountObjectNestedImpl
public class ServiceAccountFluentImpl<A extends ServiceAccountFluent<A>> extends BaseFluent<A> implements ServiceAccountFluent<A>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ServiceAccountFluentImpl.ImagePullSecretsNestedImpl<N>
class
ServiceAccountFluentImpl.MetadataNestedImpl<N>
class
ServiceAccountFluentImpl.SecretsNestedImpl<N>
-
Nested classes/interfaces inherited from interface io.fabric8.kubernetes.api.model.ServiceAccountFluent
ServiceAccountFluent.ImagePullSecretsNested<N>, ServiceAccountFluent.MetadataNested<N>, ServiceAccountFluent.SecretsNested<N>
-
-
Field Summary
-
Fields inherited from class io.fabric8.kubernetes.api.builder.BaseFluent
_visitables
-
-
Constructor Summary
Constructors Constructor Description ServiceAccountFluentImpl()
ServiceAccountFluentImpl(ServiceAccount instance)
-
Method Summary
-
-
-
Constructor Detail
-
ServiceAccountFluentImpl
public ServiceAccountFluentImpl()
-
ServiceAccountFluentImpl
public ServiceAccountFluentImpl(ServiceAccount instance)
-
-
Method Detail
-
getApiVersion
public String getApiVersion()
- Specified by:
getApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withApiVersion
public A withApiVersion(String apiVersion)
- Specified by:
withApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasApiVersion
public Boolean hasApiVersion()
- Specified by:
hasApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewApiVersion
public A withNewApiVersion(String arg1)
- Specified by:
withNewApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewApiVersion
public A withNewApiVersion(StringBuilder arg1)
- Specified by:
withNewApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewApiVersion
public A withNewApiVersion(StringBuffer arg1)
- Specified by:
withNewApiVersion
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
isAutomountServiceAccountToken
public Boolean isAutomountServiceAccountToken()
- Specified by:
isAutomountServiceAccountToken
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withAutomountServiceAccountToken
public A withAutomountServiceAccountToken(Boolean automountServiceAccountToken)
- Specified by:
withAutomountServiceAccountToken
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasAutomountServiceAccountToken
public Boolean hasAutomountServiceAccountToken()
- Specified by:
hasAutomountServiceAccountToken
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewAutomountServiceAccountToken
public A withNewAutomountServiceAccountToken(String arg1)
- Specified by:
withNewAutomountServiceAccountToken
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewAutomountServiceAccountToken
public A withNewAutomountServiceAccountToken(boolean arg1)
- Specified by:
withNewAutomountServiceAccountToken
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addToImagePullSecrets
public A addToImagePullSecrets(int index, LocalObjectReference item)
- Specified by:
addToImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
setToImagePullSecrets
public A setToImagePullSecrets(int index, LocalObjectReference item)
- Specified by:
setToImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addToImagePullSecrets
public A addToImagePullSecrets(LocalObjectReference... items)
- Specified by:
addToImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addAllToImagePullSecrets
public A addAllToImagePullSecrets(Collection<LocalObjectReference> items)
- Specified by:
addAllToImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeFromImagePullSecrets
public A removeFromImagePullSecrets(LocalObjectReference... items)
- Specified by:
removeFromImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeAllFromImagePullSecrets
public A removeAllFromImagePullSecrets(Collection<LocalObjectReference> items)
- Specified by:
removeAllFromImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeMatchingFromImagePullSecrets
public A removeMatchingFromImagePullSecrets(Predicate<LocalObjectReferenceBuilder> predicate)
- Specified by:
removeMatchingFromImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
getImagePullSecrets
@Deprecated public List<LocalObjectReference> getImagePullSecrets()
Deprecated.This method has been deprecated, please use method buildImagePullSecrets instead.- Specified by:
getImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
- Returns:
- The buildable object.
-
buildImagePullSecrets
public List<LocalObjectReference> buildImagePullSecrets()
- Specified by:
buildImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildImagePullSecret
public LocalObjectReference buildImagePullSecret(int index)
- Specified by:
buildImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildFirstImagePullSecret
public LocalObjectReference buildFirstImagePullSecret()
- Specified by:
buildFirstImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildLastImagePullSecret
public LocalObjectReference buildLastImagePullSecret()
- Specified by:
buildLastImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildMatchingImagePullSecret
public LocalObjectReference buildMatchingImagePullSecret(Predicate<LocalObjectReferenceBuilder> predicate)
- Specified by:
buildMatchingImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasMatchingImagePullSecret
public Boolean hasMatchingImagePullSecret(Predicate<LocalObjectReferenceBuilder> predicate)
- Specified by:
hasMatchingImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withImagePullSecrets
public A withImagePullSecrets(List<LocalObjectReference> imagePullSecrets)
- Specified by:
withImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withImagePullSecrets
public A withImagePullSecrets(LocalObjectReference... imagePullSecrets)
- Specified by:
withImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasImagePullSecrets
public Boolean hasImagePullSecrets()
- Specified by:
hasImagePullSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addNewImagePullSecret
public A addNewImagePullSecret(String name)
- Specified by:
addNewImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addNewImagePullSecret
public ServiceAccountFluent.ImagePullSecretsNested<A> addNewImagePullSecret()
- Specified by:
addNewImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addNewImagePullSecretLike
public ServiceAccountFluent.ImagePullSecretsNested<A> addNewImagePullSecretLike(LocalObjectReference item)
- Specified by:
addNewImagePullSecretLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
setNewImagePullSecretLike
public ServiceAccountFluent.ImagePullSecretsNested<A> setNewImagePullSecretLike(int index, LocalObjectReference item)
- Specified by:
setNewImagePullSecretLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editImagePullSecret
public ServiceAccountFluent.ImagePullSecretsNested<A> editImagePullSecret(int index)
- Specified by:
editImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editFirstImagePullSecret
public ServiceAccountFluent.ImagePullSecretsNested<A> editFirstImagePullSecret()
- Specified by:
editFirstImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editLastImagePullSecret
public ServiceAccountFluent.ImagePullSecretsNested<A> editLastImagePullSecret()
- Specified by:
editLastImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editMatchingImagePullSecret
public ServiceAccountFluent.ImagePullSecretsNested<A> editMatchingImagePullSecret(Predicate<LocalObjectReferenceBuilder> predicate)
- Specified by:
editMatchingImagePullSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
getKind
public String getKind()
- Specified by:
getKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withKind
public A withKind(String kind)
- Specified by:
withKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasKind
public Boolean hasKind()
- Specified by:
hasKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewKind
public A withNewKind(String arg1)
- Specified by:
withNewKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewKind
public A withNewKind(StringBuilder arg1)
- Specified by:
withNewKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewKind
public A withNewKind(StringBuffer arg1)
- Specified by:
withNewKind
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
getMetadata
@Deprecated public ObjectMeta getMetadata()
Deprecated.This method has been deprecated, please use method buildMetadata instead.- Specified by:
getMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
- Returns:
- The buildable object.
-
buildMetadata
public ObjectMeta buildMetadata()
- Specified by:
buildMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withMetadata
public A withMetadata(ObjectMeta metadata)
- Specified by:
withMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasMetadata
public Boolean hasMetadata()
- Specified by:
hasMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewMetadata
public ServiceAccountFluent.MetadataNested<A> withNewMetadata()
- Specified by:
withNewMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withNewMetadataLike
public ServiceAccountFluent.MetadataNested<A> withNewMetadataLike(ObjectMeta item)
- Specified by:
withNewMetadataLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editMetadata
public ServiceAccountFluent.MetadataNested<A> editMetadata()
- Specified by:
editMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editOrNewMetadata
public ServiceAccountFluent.MetadataNested<A> editOrNewMetadata()
- Specified by:
editOrNewMetadata
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editOrNewMetadataLike
public ServiceAccountFluent.MetadataNested<A> editOrNewMetadataLike(ObjectMeta item)
- Specified by:
editOrNewMetadataLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addToSecrets
public A addToSecrets(int index, ObjectReference item)
- Specified by:
addToSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
setToSecrets
public A setToSecrets(int index, ObjectReference item)
- Specified by:
setToSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addToSecrets
public A addToSecrets(ObjectReference... items)
- Specified by:
addToSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addAllToSecrets
public A addAllToSecrets(Collection<ObjectReference> items)
- Specified by:
addAllToSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeFromSecrets
public A removeFromSecrets(ObjectReference... items)
- Specified by:
removeFromSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeAllFromSecrets
public A removeAllFromSecrets(Collection<ObjectReference> items)
- Specified by:
removeAllFromSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
removeMatchingFromSecrets
public A removeMatchingFromSecrets(Predicate<ObjectReferenceBuilder> predicate)
- Specified by:
removeMatchingFromSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
getSecrets
@Deprecated public List<ObjectReference> getSecrets()
Deprecated.This method has been deprecated, please use method buildSecrets instead.- Specified by:
getSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
- Returns:
- The buildable object.
-
buildSecrets
public List<ObjectReference> buildSecrets()
- Specified by:
buildSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildSecret
public ObjectReference buildSecret(int index)
- Specified by:
buildSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildFirstSecret
public ObjectReference buildFirstSecret()
- Specified by:
buildFirstSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildLastSecret
public ObjectReference buildLastSecret()
- Specified by:
buildLastSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
buildMatchingSecret
public ObjectReference buildMatchingSecret(Predicate<ObjectReferenceBuilder> predicate)
- Specified by:
buildMatchingSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasMatchingSecret
public Boolean hasMatchingSecret(Predicate<ObjectReferenceBuilder> predicate)
- Specified by:
hasMatchingSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withSecrets
public A withSecrets(List<ObjectReference> secrets)
- Specified by:
withSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
withSecrets
public A withSecrets(ObjectReference... secrets)
- Specified by:
withSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
hasSecrets
public Boolean hasSecrets()
- Specified by:
hasSecrets
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addNewSecret
public ServiceAccountFluent.SecretsNested<A> addNewSecret()
- Specified by:
addNewSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
addNewSecretLike
public ServiceAccountFluent.SecretsNested<A> addNewSecretLike(ObjectReference item)
- Specified by:
addNewSecretLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
setNewSecretLike
public ServiceAccountFluent.SecretsNested<A> setNewSecretLike(int index, ObjectReference item)
- Specified by:
setNewSecretLike
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editSecret
public ServiceAccountFluent.SecretsNested<A> editSecret(int index)
- Specified by:
editSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editFirstSecret
public ServiceAccountFluent.SecretsNested<A> editFirstSecret()
- Specified by:
editFirstSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editLastSecret
public ServiceAccountFluent.SecretsNested<A> editLastSecret()
- Specified by:
editLastSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
editMatchingSecret
public ServiceAccountFluent.SecretsNested<A> editMatchingSecret(Predicate<ObjectReferenceBuilder> predicate)
- Specified by:
editMatchingSecret
in interfaceServiceAccountFluent<A extends ServiceAccountFluent<A>>
-
-