Class EndpointCredentials.Builder
- java.lang.Object
-
- com.oracle.bmc.loganalytics.model.EndpointCredentials.Builder
-
- Enclosing class:
- EndpointCredentials
public static class EndpointCredentials.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointCredentials
build()
EndpointCredentials.Builder
copy(EndpointCredentials model)
EndpointCredentials.Builder
credentialEndpoint(CredentialEndpoint credentialEndpoint)
EndpointCredentials.Builder
credentialName(String credentialName)
The named credential name on the management agent.EndpointCredentials.Builder
credentialType(EndpointCredentials.CredentialType credentialType)
The credential type.
-
-
-
Method Detail
-
credentialType
public EndpointCredentials.Builder credentialType(EndpointCredentials.CredentialType credentialType)
The credential type.NONE indicates credentials are not needed to access the endpoint. BASIC_AUTH represents a username and password based model. TOKEN could be static or dynamic. In case of dynamic tokens, also specify the endpoint from which the token must be fetched.
- Parameters:
credentialType
- the value to set- Returns:
- this builder
-
credentialName
public EndpointCredentials.Builder credentialName(String credentialName)
The named credential name on the management agent.- Parameters:
credentialName
- the value to set- Returns:
- this builder
-
credentialEndpoint
public EndpointCredentials.Builder credentialEndpoint(CredentialEndpoint credentialEndpoint)
-
build
public EndpointCredentials build()
-
copy
public EndpointCredentials.Builder copy(EndpointCredentials model)
-
-