Interface GrantAccessResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GrantAccessResponse.Builder,,GrantAccessResponse> OpsWorksResponse.Builder,SdkBuilder<GrantAccessResponse.Builder,,GrantAccessResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GrantAccessResponse
public static interface GrantAccessResponse.Builder
extends OpsWorksResponse.Builder, SdkPojo, CopyableBuilder<GrantAccessResponse.Builder,GrantAccessResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GrantAccessResponse.BuildertemporaryCredential(Consumer<TemporaryCredential.Builder> temporaryCredential) ATemporaryCredentialobject that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.temporaryCredential(TemporaryCredential temporaryCredential) ATemporaryCredentialobject that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworks.model.OpsWorksResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
temporaryCredential
A
TemporaryCredentialobject that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.- Parameters:
temporaryCredential- ATemporaryCredentialobject that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
temporaryCredential
default GrantAccessResponse.Builder temporaryCredential(Consumer<TemporaryCredential.Builder> temporaryCredential) A
This is a convenience method that creates an instance of theTemporaryCredentialobject that contains the data needed to log in to the instance by RDP clients, such as the Microsoft Remote Desktop Connection.TemporaryCredential.Builderavoiding the need to create one manually viaTemporaryCredential.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totemporaryCredential(TemporaryCredential).- Parameters:
temporaryCredential- a consumer that will call methods onTemporaryCredential.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-