Class CfnApp.SourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnApp.SourceProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnApp.SourceProperty>
- Enclosing interface:
- CfnApp.SourceProperty
@Stability(Stable)
public static final class CfnApp.SourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApp.SourceProperty>
A builder for 
CfnApp.SourceProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnApp.SourceProperty.getPassword()Sets the value ofCfnApp.SourceProperty.getRevision()Sets the value ofCfnApp.SourceProperty.getSshKey()Sets the value ofCfnApp.SourceProperty.getType()Sets the value ofCfnApp.SourceProperty.getUrl()Sets the value ofCfnApp.SourceProperty.getUsername()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
passwordSets the value ofCfnApp.SourceProperty.getPassword()- Parameters:
- password- When included in a request, the parameter depends on the repository type.- For Amazon S3 bundles, set Passwordto the appropriate IAM secret access key.
- For HTTP bundles and Subversion repositories, set Passwordto the password.
 - For more information on how to safely handle IAM credentials, see . - In responses, OpsWorks Stacks returns - *****FILTERED*****instead of the actual value.
- For Amazon S3 bundles, set 
- Returns:
- this
 
- 
revisionSets the value ofCfnApp.SourceProperty.getRevision()- Parameters:
- revision- The application's version. OpsWorks Stacks enables you to easily deploy new versions of an application. One of the simplest approaches is to have branches or revisions in your repository that represent different versions that can potentially be deployed.
- Returns:
- this
 
- 
sshKeySets the value ofCfnApp.SourceProperty.getSshKey()- Parameters:
- sshKey- In requests, the repository's SSH key. In responses, OpsWorks Stacks returns- *****FILTERED*****instead of the actual value.
- Returns:
- this
 
- 
typeSets the value ofCfnApp.SourceProperty.getType()- Parameters:
- type- The repository type.
- Returns:
- this
 
- 
urlSets the value ofCfnApp.SourceProperty.getUrl()- Parameters:
- url- The source URL. The following is an example of an Amazon S3 source URL:- https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz.
- Returns:
- this
 
- 
usernameSets the value ofCfnApp.SourceProperty.getUsername()- Parameters:
- username- This parameter depends on the repository type.- For Amazon S3 bundles, set Usernameto the appropriate IAM access key ID.
- For HTTP bundles, Git repositories, and Subversion repositories, set Usernameto the user name.
 
- For Amazon S3 bundles, set 
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnApp.SourceProperty>
- Returns:
- a new instance of CfnApp.SourceProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-