Class AwsRequest.Builder
- java.lang.Object
-
- com.mongodb.stitch.core.services.aws.AwsRequest.Builder
-
- Enclosing class:
- AwsRequest
public static class AwsRequest.Builder extends Object
A builder that can buildAwsRequests.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs a new builder for an AWS request.
-
Method Summary
Modifier and Type Method Description AwsRequestbuild()Builds, validates, and returns theAwsRequest.AwsRequest.BuilderwithAction(String action)Sets the action within the AWS service to perform.AwsRequest.BuilderwithArguments(Document arguments)Sets the arguments that will be used in the action.AwsRequest.BuilderwithRegion(String region)Sets the region that service in this request should be scoped to.AwsRequest.BuilderwithService(String service)Sets the AWS service that the action in the request will be performed against.
-
-
-
Method Detail
-
withService
public AwsRequest.Builder withService(String service)
Sets the AWS service that the action in the request will be performed against.- Parameters:
service- the AWS service that the action in the request will be performed against.- Returns:
- the builder.
-
withAction
public AwsRequest.Builder withAction(String action)
Sets the action within the AWS service to perform.- Parameters:
action- the action within the AWS service to perform.- Returns:
- the builder.
-
withRegion
public AwsRequest.Builder withRegion(String region)
Sets the region that service in this request should be scoped to.- Parameters:
region- the region that service in this request should be scoped to.- Returns:
- the builder.
-
withArguments
public AwsRequest.Builder withArguments(Document arguments)
Sets the arguments that will be used in the action.- Parameters:
arguments- the arguments that will be used in the action.- Returns:
- the builder.
-
build
public AwsRequest build()
Builds, validates, and returns theAwsRequest.- Returns:
- the built AWS request.
-
-