Package com.cognite.client.config
Class AuthConfig
- java.lang.Object
-
- com.cognite.client.config.AuthConfig
-
- All Implemented Interfaces:
Serializable
public abstract class AuthConfig extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthConfig.Builder
-
Constructor Summary
Constructors Constructor Description AuthConfig()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static AuthConfigcreate()abstract StringgetApiKey()abstract StringgetHost()abstract StringgetProject()abstract AuthConfig.BuildertoBuilder()StringtoString()AuthConfigwithApiKey(String value)Returns a newAuthConfigthat represents the specified api key.AuthConfigwithHost(String value)Returns a newAuthConfigthat represents the specified host.AuthConfigwithProject(String value)Returns a newAuthConfigthat represents the specified project.
-
-
-
Method Detail
-
create
public static AuthConfig create()
-
getProject
@Nullable public abstract String getProject()
-
getApiKey
@Nullable public abstract String getApiKey()
-
getHost
public abstract String getHost()
-
toBuilder
public abstract AuthConfig.Builder toBuilder()
-
withHost
public AuthConfig withHost(String value)
Returns a newAuthConfigthat represents the specified host.- Parameters:
value- The project id interact with.
-
withProject
public AuthConfig withProject(String value)
Returns a newAuthConfigthat represents the specified project.- Parameters:
value- The project id interact with.
-
withApiKey
public AuthConfig withApiKey(String value)
Returns a newAuthConfigthat represents the specified api key.- Parameters:
value- The project id interact with.
-
-