Interface CreateRepositoryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateRepositoryRequest.Builder,
,CreateRepositoryRequest> ProtonRequest.Builder
,SdkBuilder<CreateRepositoryRequest.Builder,
,CreateRepositoryRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateRepositoryRequest
-
Method Summary
Modifier and TypeMethodDescriptionconnectionArn
(String connectionArn) The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account.encryptionKey
(String encryptionKey) The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.The repository name (for example,myrepos/myrepo
).overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The repository provider.provider
(RepositoryProvider provider) The repository provider.tags
(Collection<Tag> tags) An optional list of metadata items that you can associate with the Proton repository.tags
(Consumer<Tag.Builder>... tags) An optional list of metadata items that you can associate with the Proton repository.An optional list of metadata items that you can associate with the Proton repository.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.proton.model.ProtonRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
connectionArn
The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.
- Parameters:
connectionArn
- The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
encryptionKey
The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
- Parameters:
encryptionKey
- The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The repository name (for example,
myrepos/myrepo
).- Parameters:
name
- The repository name (for example,myrepos/myrepo
).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
provider
The repository provider.
- Parameters:
provider
- The repository provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
provider
The repository provider.
- Parameters:
provider
- The repository provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
- Parameters:
tags
- An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.For more information, see Proton resources and tagging in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
- Parameters:
tags
- An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.For more information, see Proton resources and tagging in the Proton User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateRepositoryRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-