@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable public final class ImmutableOAuth2Defaults extends Object implements OAuth2Defaults
OAuth2Defaults.
Use the builder to create immutable instances:
ImmutableOAuth2Defaults.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableOAuth2Defaults.Builder
Builds instances of type
ImmutableOAuth2Defaults. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBasicAuthHeader()
Specifies if clientId and clientSecret should be added to basic auth header
|
com.google.common.collect.ImmutableList<String> |
authURL()
Auth URLs.
|
static ImmutableOAuth2Defaults.Builder |
builder()
Creates a builder for
ImmutableOAuth2Defaults. |
static ImmutableOAuth2Defaults |
copyOf(OAuth2Defaults instance)
Creates an immutable copy of a
OAuth2Defaults value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableOAuth2Defaults that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
oAuthScopes, tokenURL, authURL, oAuth2GrantTypesSupported, oAuth2ContentType, oAuth2MethodType, oauth2CustomProperties, addBasicAuthHeader. |
OAuth2ContentType |
oAuth2ContentType()
OAuth2 Content type to use in the token request header.
|
com.google.common.collect.ImmutableList<OAuth2CustomParameter> |
oauth2CustomProperties()
OAuth2 custom parameters needed by the connector.
|
com.google.common.collect.ImmutableList<OAuth2GrantType> |
oAuth2GrantTypesSupported()
OAuth2 Grant types supported by connector.
|
OAuth2MethodType |
oAuth2MethodType()
OAuth2 Http method to use for the token request.
|
com.google.common.collect.ImmutableList<String> |
oAuthScopes()
OAuth Scopes.
|
com.google.common.collect.ImmutableList<String> |
tokenURL()
Token URLs.
|
String |
toString()
Prints the immutable value
OAuth2Defaults with attribute values. |
ImmutableOAuth2Defaults |
withAddBasicAuthHeader(boolean value)
Copy the current immutable object by setting a value for the
addBasicAuthHeader attribute. |
ImmutableOAuth2Defaults |
withAuthURL(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
authURL. |
ImmutableOAuth2Defaults |
withAuthURL(String... elements)
Copy the current immutable object with elements that replace the content of
authURL. |
ImmutableOAuth2Defaults |
withOAuth2ContentType(OAuth2ContentType value)
Copy the current immutable object by setting a value for the
oAuth2ContentType attribute. |
ImmutableOAuth2Defaults |
withOauth2CustomProperties(Iterable<? extends OAuth2CustomParameter> elements)
Copy the current immutable object with elements that replace the content of
oauth2CustomProperties. |
ImmutableOAuth2Defaults |
withOauth2CustomProperties(OAuth2CustomParameter... elements)
Copy the current immutable object with elements that replace the content of
oauth2CustomProperties. |
ImmutableOAuth2Defaults |
withOAuth2GrantTypesSupported(Iterable<? extends OAuth2GrantType> elements)
Copy the current immutable object with elements that replace the content of
oAuth2GrantTypesSupported. |
ImmutableOAuth2Defaults |
withOAuth2GrantTypesSupported(OAuth2GrantType... elements)
Copy the current immutable object with elements that replace the content of
oAuth2GrantTypesSupported. |
ImmutableOAuth2Defaults |
withOAuth2MethodType(OAuth2MethodType value)
Copy the current immutable object by setting a value for the
oAuth2MethodType attribute. |
ImmutableOAuth2Defaults |
withOAuthScopes(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
oAuthScopes. |
ImmutableOAuth2Defaults |
withOAuthScopes(String... elements)
Copy the current immutable object with elements that replace the content of
oAuthScopes. |
ImmutableOAuth2Defaults |
withTokenURL(Iterable<String> elements)
Copy the current immutable object with elements that replace the content of
tokenURL. |
ImmutableOAuth2Defaults |
withTokenURL(String... elements)
Copy the current immutable object with elements that replace the content of
tokenURL. |
@Nullable public com.google.common.collect.ImmutableList<String> oAuthScopes()
oAuthScopes in interface OAuth2Defaultspublic com.google.common.collect.ImmutableList<String> tokenURL()
tokenURL in interface OAuth2Defaults@Nullable public com.google.common.collect.ImmutableList<String> authURL()
authURL in interface OAuth2Defaultspublic com.google.common.collect.ImmutableList<OAuth2GrantType> oAuth2GrantTypesSupported()
oAuth2GrantTypesSupported in interface OAuth2Defaultspublic OAuth2ContentType oAuth2ContentType()
oAuth2ContentType in interface OAuth2Defaultspublic OAuth2MethodType oAuth2MethodType()
oAuth2MethodType in interface OAuth2Defaults@Nullable public com.google.common.collect.ImmutableList<OAuth2CustomParameter> oauth2CustomProperties()
oauth2CustomProperties in interface OAuth2Defaultspublic boolean addBasicAuthHeader()
addBasicAuthHeader in interface OAuth2Defaultspublic final ImmutableOAuth2Defaults withOAuthScopes(@Nullable String... elements)
oAuthScopes.elements - The elements to setthis objectpublic final ImmutableOAuth2Defaults withOAuthScopes(@Nullable Iterable<String> elements)
oAuthScopes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of oAuthScopes elements to setthis objectpublic final ImmutableOAuth2Defaults withTokenURL(String... elements)
tokenURL.elements - The elements to setthis objectpublic final ImmutableOAuth2Defaults withTokenURL(Iterable<String> elements)
tokenURL.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of tokenURL elements to setthis objectpublic final ImmutableOAuth2Defaults withAuthURL(@Nullable String... elements)
authURL.elements - The elements to setthis objectpublic final ImmutableOAuth2Defaults withAuthURL(@Nullable Iterable<String> elements)
authURL.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of authURL elements to setthis objectpublic final ImmutableOAuth2Defaults withOAuth2GrantTypesSupported(OAuth2GrantType... elements)
oAuth2GrantTypesSupported.elements - The elements to setthis objectpublic final ImmutableOAuth2Defaults withOAuth2GrantTypesSupported(Iterable<? extends OAuth2GrantType> elements)
oAuth2GrantTypesSupported.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of oAuth2GrantTypesSupported elements to setthis objectpublic final ImmutableOAuth2Defaults withOAuth2ContentType(OAuth2ContentType value)
oAuth2ContentType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for oAuth2ContentTypethis objectpublic final ImmutableOAuth2Defaults withOAuth2MethodType(OAuth2MethodType value)
oAuth2MethodType attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for oAuth2MethodTypethis objectpublic final ImmutableOAuth2Defaults withOauth2CustomProperties(@Nullable OAuth2CustomParameter... elements)
oauth2CustomProperties.elements - The elements to setthis objectpublic final ImmutableOAuth2Defaults withOauth2CustomProperties(@Nullable Iterable<? extends OAuth2CustomParameter> elements)
oauth2CustomProperties.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of oauth2CustomProperties elements to setthis objectpublic final ImmutableOAuth2Defaults withAddBasicAuthHeader(boolean value)
addBasicAuthHeader attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for addBasicAuthHeaderthis objectpublic boolean equals(@Nullable Object another)
ImmutableOAuth2Defaults that have equal attribute values.public int hashCode()
oAuthScopes, tokenURL, authURL, oAuth2GrantTypesSupported, oAuth2ContentType, oAuth2MethodType, oauth2CustomProperties, addBasicAuthHeader.public String toString()
OAuth2Defaults with attribute values.public static ImmutableOAuth2Defaults copyOf(OAuth2Defaults instance)
OAuth2Defaults value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableOAuth2Defaults.Builder builder()
ImmutableOAuth2Defaults.
ImmutableOAuth2Defaults.builder()
.oAuthScopes(List<String> | null) // nullable oAuthScopes
.addTokenURL|addAllTokenURL(String) // tokenURL elements
.authURL(List<String> | null) // nullable authURL
.addOAuth2GrantTypesSupported|addAllOAuth2GrantTypesSupported(com.amazonaws.appflow.custom.connector.model.connectorconfiguration.auth.OAuth2GrantType) // oAuth2GrantTypesSupported elements
.oAuth2ContentType(com.amazonaws.appflow.custom.connector.model.connectorconfiguration.auth.OAuth2ContentType) // optional oAuth2ContentType
.oAuth2MethodType(com.amazonaws.appflow.custom.connector.model.connectorconfiguration.auth.OAuth2MethodType) // optional oAuth2MethodType
.oauth2CustomProperties(List<com.amazonaws.appflow.custom.connector.model.connectorconfiguration.auth.OAuth2CustomParameter> | null) // nullable oauth2CustomProperties
.addBasicAuthHeader(boolean) // optional addBasicAuthHeader
.build();
Copyright © 2021–2022 Amazon Web Services. All rights reserved.