All Downloads are FREE. Search and download functionalities are using the official Maven repository.

annotations.io.fabric8.openshift.api.model.OAuthAccessTokenFluent Maven / Gradle / Ivy

There is a newer version: 0.0.54
Show newest version
package io.fabric8.openshift.api.model;

import io.fabric8.kubernetes.api.model.ObjectMeta;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import java.util.ArrayList;
import io.fabric8.kubernetes.api.model.ObjectMetaBuilder;
import io.fabric8.common.Nested;
import io.fabric8.common.Builder;
import io.fabric8.common.Fluent;
import io.fabric8.common.BaseFluent;
import io.fabric8.common.Visitable;
import io.fabric8.kubernetes.api.model.ObjectMetaFluent;

public class OAuthAccessTokenFluent> extends BaseFluent implements Fluent{

     OAuthAccessToken.ApiVersion apiVersion;     String authorizeToken;     String clientName;     Long expiresIn;     String kind;     ObjectMetaBuilder metadata;     String redirectURI;     String refreshToken;     List scopes = new ArrayList();     String userName;     String userUID;     Map additionalProperties = new HashMap();

    public OAuthAccessToken.ApiVersion getApiVersion(){
    return this.apiVersion;
    }
    public T withApiVersion( OAuthAccessToken.ApiVersion apiVersion){
    this.apiVersion=apiVersion; return (T) this;
    }
    public String getAuthorizeToken(){
    return this.authorizeToken;
    }
    public T withAuthorizeToken( String authorizeToken){
    this.authorizeToken=authorizeToken; return (T) this;
    }
    public String getClientName(){
    return this.clientName;
    }
    public T withClientName( String clientName){
    this.clientName=clientName; return (T) this;
    }
    public Long getExpiresIn(){
    return this.expiresIn;
    }
    public T withExpiresIn( Long expiresIn){
    this.expiresIn=expiresIn; return (T) this;
    }
    public String getKind(){
    return this.kind;
    }
    public T withKind( String kind){
    this.kind=kind; return (T) this;
    }
    public ObjectMeta getMetadata(){
    return this.metadata!=null?this.metadata.build():null;
    }
    public T withMetadata( ObjectMeta metadata){
    if (metadata!=null){ this.metadata= new ObjectMetaBuilder(metadata); _visitables.add(this.metadata);} return (T) this;
    }
    public MetadataNested withNewMetadata(){
    return new MetadataNested();
    }
    public String getRedirectURI(){
    return this.redirectURI;
    }
    public T withRedirectURI( String redirectURI){
    this.redirectURI=redirectURI; return (T) this;
    }
    public String getRefreshToken(){
    return this.refreshToken;
    }
    public T withRefreshToken( String refreshToken){
    this.refreshToken=refreshToken; return (T) this;
    }
    public T addToScopes( String item){
    if (item != null) {this.scopes.add(item);} return (T)this;
    }
    public List getScopes(){
    return this.scopes;
    }
    public T withScopes( List scopes){
    this.scopes.clear();if (scopes != null) {for (String item : scopes){this.addToScopes(item);}} return (T) this;
    }
    public String getUserName(){
    return this.userName;
    }
    public T withUserName( String userName){
    this.userName=userName; return (T) this;
    }
    public String getUserUID(){
    return this.userUID;
    }
    public T withUserUID( String userUID){
    this.userUID=userUID; return (T) this;
    }
    public T addToAdditionalProperties( String key,  Object value){
    if(key != null && value != null) {this.additionalProperties.put(key, value);} return (T)this;
    }
    public Map getAdditionalProperties(){
    return this.additionalProperties;
    }
    public T withAdditionalProperties( Map additionalProperties){
    this.additionalProperties.clear();if (additionalProperties != null) {this.additionalProperties.putAll(additionalProperties);} return (T) this;
    }

    public class MetadataNested extends ObjectMetaFluent> implements Nested{

        private final ObjectMetaBuilder builder = new ObjectMetaBuilder(this);
    
            public N and(){
            return (N) OAuthAccessTokenFluent.this.withMetadata(builder.build());
        }
            public N endMetadata(){
            return and();
        }
    
}


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy