Interface CreateAuthCodeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateAuthCodeRequest.Builder,,CreateAuthCodeRequest> SdkBuilder<CreateAuthCodeRequest.Builder,,CreateAuthCodeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateAuthCodeRequest
-
Method Summary
Modifier and TypeMethodDescriptioninstanceId(String instanceId) The identifier of the Connect Customer instance.maxSessionDurationMinutes(Integer maxSessionDurationMinutes) The maximum duration of the session, in minutes.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateAuthCodeRequest.Builderscope(Consumer<AuthScope.Builder> scope) The scope for the authorization code.The scope for the authorization code.sessionInactivityDurationMinutes(Integer sessionInactivityDurationMinutes) The duration of inactivity, in minutes, after which the session expires.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
instanceId
The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
The scope for the authorization code. Defines the permissions and access boundaries for the session.
- Parameters:
scope- The scope for the authorization code. Defines the permissions and access boundaries for the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
The scope for the authorization code. Defines the permissions and access boundaries for the session.
This is a convenience method that creates an instance of theAuthScope.Builderavoiding the need to create one manually viaAuthScope.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscope(AuthScope).- Parameters:
scope- a consumer that will call methods onAuthScope.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
maxSessionDurationMinutes
The maximum duration of the session, in minutes. Minimum value of 1440 (24 hours). Maximum value of 43200 (30 days). If no value is provided, the session will expire after 400 days.
- Parameters:
maxSessionDurationMinutes- The maximum duration of the session, in minutes. Minimum value of 1440 (24 hours). Maximum value of 43200 (30 days). If no value is provided, the session will expire after 400 days.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionInactivityDurationMinutes
CreateAuthCodeRequest.Builder sessionInactivityDurationMinutes(Integer sessionInactivityDurationMinutes) The duration of inactivity, in minutes, after which the session expires. Minimum value of 1440 (24 hours). Maximum value of 20160 (14 days).
- Parameters:
sessionInactivityDurationMinutes- The duration of inactivity, in minutes, after which the session expires. Minimum value of 1440 (24 hours). Maximum value of 20160 (14 days).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateAuthCodeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateAuthCodeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-