Class CreateConnectionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.eventbridge.model.EventBridgeRequest
-
- software.amazon.awssdk.services.eventbridge.model.CreateConnectionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateConnectionRequest.Builder,CreateConnectionRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateConnectionRequest extends EventBridgeRequest implements ToCopyableBuilder<CreateConnectionRequest.Builder,CreateConnectionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateConnectionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionAuthorizationTypeauthorizationType()The type of authorization to use for the connection.StringauthorizationTypeAsString()The type of authorization to use for the connection.CreateConnectionAuthRequestParametersauthParameters()ACreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.static CreateConnectionRequest.Builderbuilder()Stringdescription()A description for the connection to create.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name for the connection to create.List<SdkField<?>>sdkFields()static Class<? extends CreateConnectionRequest.Builder>serializableBuilderClass()CreateConnectionRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name for the connection to create.
- Returns:
- The name for the connection to create.
-
description
public final String description()
A description for the connection to create.
- Returns:
- A description for the connection to create.
-
authorizationType
public final ConnectionAuthorizationType authorizationType()
The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
If the service returns an enum value that is not available in the current SDK version,
authorizationTypewill returnConnectionAuthorizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthorizationTypeAsString().- Returns:
- The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
- See Also:
ConnectionAuthorizationType
-
authorizationTypeAsString
public final String authorizationTypeAsString()
The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
If the service returns an enum value that is not available in the current SDK version,
authorizationTypewill returnConnectionAuthorizationType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromauthorizationTypeAsString().- Returns:
- The type of authorization to use for the connection.
OAUTH tokens are refreshed when a 401 or 407 response is returned.
- See Also:
ConnectionAuthorizationType
-
authParameters
public final CreateConnectionAuthRequestParameters authParameters()
A
CreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.- Returns:
- A
CreateConnectionAuthRequestParametersobject that contains the authorization parameters to use to authorize with the endpoint.
-
toBuilder
public CreateConnectionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateConnectionRequest.Builder,CreateConnectionRequest>- Specified by:
toBuilderin classEventBridgeRequest
-
builder
public static CreateConnectionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateConnectionRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-