Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.opsworks.model
Class Source

java.lang.Object
  extended by com.amazonaws.services.opsworks.model.Source
All Implemented Interfaces:
Serializable

public class Source
extends Object
implements Serializable

Contains the information required to retrieve an app or cookbook from a repository.

See Also:
Serialized Form

Constructor Summary
Source()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getPassword()
          The repository's password.
 String getRevision()
          The application's version.
 String getSshKey()
          The repository's SSH key.
 String getType()
          The repository type.
 String getUrl()
          The source URL.
 String getUsername()
          The user name.
 int hashCode()
           
 void setPassword(String password)
          The repository's password.
 void setRevision(String revision)
          The application's version.
 void setSshKey(String sshKey)
          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)
          The user name.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Source withPassword(String password)
          The repository's password.
 Source withRevision(String revision)
          The application's version.
 Source withSshKey(String sshKey)
          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)
          The user name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Source

public Source()
Method Detail

getType

public String getType()
The repository type.

Constraints:
Allowed Values: git, svn, archive, s3

Returns:
The repository type.
See Also:
SourceType

setType

public void setType(String type)
The repository type.

Constraints:
Allowed Values: git, svn, archive, s3

Parameters:
type - The repository type.
See Also:
SourceType

withType

public Source withType(String type)
The repository type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: git, svn, archive, s3

Parameters:
type - The repository type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SourceType

setType

public void setType(SourceType type)
The repository type.

Constraints:
Allowed Values: git, svn, archive, s3

Parameters:
type - The repository type.
See Also:
SourceType

withType

public Source withType(SourceType type)
The repository type.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: git, svn, archive, s3

Parameters:
type - The repository type.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
SourceType

getUrl

public String getUrl()
The source URL.

Returns:
The source URL.

setUrl

public void setUrl(String url)
The source URL.

Parameters:
url - The source URL.

withUrl

public Source withUrl(String url)
The source URL.

Returns a reference to this object so that method calls can be chained together.

Parameters:
url - The source URL.
Returns:
A reference to this updated object so that method calls can be chained together.

getUsername

public String getUsername()
The user name.

Returns:
The user name.

setUsername

public void setUsername(String username)
The user name.

Parameters:
username - The user name.

withUsername

public Source withUsername(String username)
The user name.

Returns a reference to this object so that method calls can be chained together.

Parameters:
username - The user name.
Returns:
A reference to this updated object so that method calls can be chained together.

getPassword

public String getPassword()
The repository's password.

Returns:
The repository's password.

setPassword

public void setPassword(String password)
The repository's password.

Parameters:
password - The repository's password.

withPassword

public Source withPassword(String password)
The repository's password.

Returns a reference to this object so that method calls can be chained together.

Parameters:
password - The repository's password.
Returns:
A reference to this updated object so that method calls can be chained together.

getSshKey

public String getSshKey()
The repository's SSH key.

Returns:
The repository's SSH key.

setSshKey

public void setSshKey(String sshKey)
The repository's SSH key.

Parameters:
sshKey - The repository's SSH key.

withSshKey

public Source withSshKey(String sshKey)
The repository's SSH key.

Returns a reference to this object so that method calls can be chained together.

Parameters:
sshKey - The repository's SSH key.
Returns:
A reference to this updated object so that method calls can be chained together.

getRevision

public String getRevision()
The application's version. 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.

Returns:
The application's version. 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.

setRevision

public void setRevision(String revision)
The application's version. 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.

Parameters:
revision - The application's version. 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.

withRevision

public Source withRevision(String revision)
The application's version. 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
revision - The application's version. 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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.