@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Revision extends Object implements Serializable, Cloneable, StructuredPojo
Information about the revision for a specific sync event, such as the branch, owner ID, and name of the repository.
Constructor and Description |
---|
Revision() |
Modifier and Type | Method and Description |
---|---|
Revision |
clone() |
boolean |
equals(Object obj) |
String |
getBranch()
The branch name for a specific revision.
|
String |
getDirectory()
The directory, if any, for a specific revision.
|
String |
getOwnerId()
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
|
String |
getProviderType()
The provider type for a revision, such as GitHub.
|
String |
getRepositoryName()
The repository name for a specific revision.
|
String |
getSha()
The SHA, such as the commit ID, for a specific revision.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBranch(String branch)
The branch name for a specific revision.
|
void |
setDirectory(String directory)
The directory, if any, for a specific revision.
|
void |
setOwnerId(String ownerId)
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
|
void |
setProviderType(String providerType)
The provider type for a revision, such as GitHub.
|
void |
setRepositoryName(String repositoryName)
The repository name for a specific revision.
|
void |
setSha(String sha)
The SHA, such as the commit ID, for a specific revision.
|
String |
toString()
Returns a string representation of this object.
|
Revision |
withBranch(String branch)
The branch name for a specific revision.
|
Revision |
withDirectory(String directory)
The directory, if any, for a specific revision.
|
Revision |
withOwnerId(String ownerId)
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
|
Revision |
withProviderType(ProviderType providerType)
The provider type for a revision, such as GitHub.
|
Revision |
withProviderType(String providerType)
The provider type for a revision, such as GitHub.
|
Revision |
withRepositoryName(String repositoryName)
The repository name for a specific revision.
|
Revision |
withSha(String sha)
The SHA, such as the commit ID, for a specific revision.
|
public void setBranch(String branch)
The branch name for a specific revision.
branch
- The branch name for a specific revision.public String getBranch()
The branch name for a specific revision.
public Revision withBranch(String branch)
The branch name for a specific revision.
branch
- The branch name for a specific revision.public void setDirectory(String directory)
The directory, if any, for a specific revision.
directory
- The directory, if any, for a specific revision.public String getDirectory()
The directory, if any, for a specific revision.
public Revision withDirectory(String directory)
The directory, if any, for a specific revision.
directory
- The directory, if any, for a specific revision.public void setOwnerId(String ownerId)
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
ownerId
- The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.public String getOwnerId()
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
public Revision withOwnerId(String ownerId)
The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.
ownerId
- The owner ID for a specific revision, such as the GitHub owner ID for a GitHub repository.public void setRepositoryName(String repositoryName)
The repository name for a specific revision.
repositoryName
- The repository name for a specific revision.public String getRepositoryName()
The repository name for a specific revision.
public Revision withRepositoryName(String repositoryName)
The repository name for a specific revision.
repositoryName
- The repository name for a specific revision.public void setProviderType(String providerType)
The provider type for a revision, such as GitHub.
providerType
- The provider type for a revision, such as GitHub.ProviderType
public String getProviderType()
The provider type for a revision, such as GitHub.
ProviderType
public Revision withProviderType(String providerType)
The provider type for a revision, such as GitHub.
providerType
- The provider type for a revision, such as GitHub.ProviderType
public Revision withProviderType(ProviderType providerType)
The provider type for a revision, such as GitHub.
providerType
- The provider type for a revision, such as GitHub.ProviderType
public void setSha(String sha)
The SHA, such as the commit ID, for a specific revision.
sha
- The SHA, such as the commit ID, for a specific revision.public String getSha()
The SHA, such as the commit ID, for a specific revision.
public Revision withSha(String sha)
The SHA, such as the commit ID, for a specific revision.
sha
- The SHA, such as the commit ID, for a specific revision.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.