public class Source extends Object implements Serializable, Cloneable
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks .
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
boolean |
equals(Object obj) |
String |
getPassword()
When included in a request, the parameter depends on the repository
type.
|
String |
getRevision()
The application's version.
|
String |
getSshKey()
In requests, the repository's SSH key.
|
String |
getType()
The repository type.
|
String |
getUrl()
The source URL.
|
String |
getUsername()
This parameter depends on the repository type.
|
int |
hashCode() |
void |
setPassword(String password)
When included in a request, the parameter depends on the repository
type.
|
void |
setRevision(String revision)
The application's version.
|
void |
setSshKey(String sshKey)
In requests, the repository's SSH key.
|
void |
setType(SourceType type)
The repository type.
|
void |
setType(String type)
The repository type.
|
void |
setUrl(String url)
The source URL.
|
void |
setUsername(String username)
This parameter depends on the repository type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Source |
withPassword(String password)
When included in a request, the parameter depends on the repository
type.
|
Source |
withRevision(String revision)
The application's version.
|
Source |
withSshKey(String sshKey)
In requests, the repository's SSH key.
|
Source |
withType(SourceType type)
The repository type.
|
Source |
withType(String type)
The repository type.
|
Source |
withUrl(String url)
The source URL.
|
Source |
withUsername(String username)
This parameter depends on the repository type.
|
public String getType()
Constraints:
Allowed Values: git, svn, archive, s3
SourceType
public void setType(String type)
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public Source withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public void setType(SourceType type)
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public Source withType(SourceType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public String getUrl()
public void setUrl(String url)
url
- The source URL.public Source withUrl(String url)
Returns a reference to this object so that method calls can be chained together.
url
- The source URL.public String getUsername()
Username
to the appropriate IAM access key
ID.Username
to the user name.Username
to the appropriate IAM access key
ID.Username
to the user name.public void setUsername(String username)
Username
to the appropriate IAM access key
ID.Username
to the user name.username
- This parameter depends on the repository type. Username
to the appropriate IAM access key
ID.Username
to the user name.public Source withUsername(String username)
Username
to the appropriate IAM access key
ID.Username
to the user name.Returns a reference to this object so that method calls can be chained together.
username
- This parameter depends on the repository type. Username
to the appropriate IAM access key
ID.Username
to the user name.public String getPassword()
Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public void setPassword(String password)
Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
password
- When included in a request, the parameter depends on the repository
type. Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public Source withPassword(String password)
Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
Returns a reference to this object so that method calls can be chained together.
password
- When included in a request, the parameter depends on the repository
type. Password
to the
appropriate IAM secret access key.Password
to the
password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public String getSshKey()
In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
public void setSshKey(String sshKey)
In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
sshKey
- In requests, the repository's SSH key. In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
public Source withSshKey(String sshKey)
In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
Returns a reference to this object so that method calls can be chained together.
sshKey
- In requests, the repository's SSH key. In responses, AWS OpsWorks
returns *****FILTERED*****
instead of the actual value.
public String getRevision()
public void setRevision(String revision)
revision
- The application's version. AWS OpsWorks 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.public Source withRevision(String revision)
Returns a reference to this object so that method calls can be chained together.
revision
- The application's version. AWS OpsWorks 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.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.