@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Campaign extends Object implements Serializable, Cloneable, StructuredPojo
Describes a deployed solution version, otherwise known as a campaign. For more information on campaigns, see CreateCampaign.
Constructor and Description |
---|
Campaign() |
Modifier and Type | Method and Description |
---|---|
Campaign |
clone() |
boolean |
equals(Object obj) |
String |
getCampaignArn()
The Amazon Resource Name (ARN) of the campaign.
|
Date |
getCreationDateTime()
The date and time (in Unix format) that the campaign was created.
|
String |
getFailureReason()
If a campaign fails, the reason behind the failure.
|
Date |
getLastUpdatedDateTime()
The date and time (in Unix format) that the campaign was last updated.
|
CampaignUpdateSummary |
getLatestCampaignUpdate() |
Integer |
getMinProvisionedTPS()
Specifies the requested minimum provisioned transactions (recommendations) per second.
|
String |
getName()
The name of the campaign.
|
String |
getSolutionVersionArn()
The Amazon Resource Name (ARN) of a specific version of the solution.
|
String |
getStatus()
The status of the campaign.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
|
void |
setCreationDateTime(Date creationDateTime)
The date and time (in Unix format) that the campaign was created.
|
void |
setFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
|
void |
setLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix format) that the campaign was last updated.
|
void |
setLatestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate) |
void |
setMinProvisionedTPS(Integer minProvisionedTPS)
Specifies the requested minimum provisioned transactions (recommendations) per second.
|
void |
setName(String name)
The name of the campaign.
|
void |
setSolutionVersionArn(String solutionVersionArn)
The Amazon Resource Name (ARN) of a specific version of the solution.
|
void |
setStatus(String status)
The status of the campaign.
|
String |
toString()
Returns a string representation of this object.
|
Campaign |
withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
|
Campaign |
withCreationDateTime(Date creationDateTime)
The date and time (in Unix format) that the campaign was created.
|
Campaign |
withFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
|
Campaign |
withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix format) that the campaign was last updated.
|
Campaign |
withLatestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate) |
Campaign |
withMinProvisionedTPS(Integer minProvisionedTPS)
Specifies the requested minimum provisioned transactions (recommendations) per second.
|
Campaign |
withName(String name)
The name of the campaign.
|
Campaign |
withSolutionVersionArn(String solutionVersionArn)
The Amazon Resource Name (ARN) of a specific version of the solution.
|
Campaign |
withStatus(String status)
The status of the campaign.
|
public void setName(String name)
The name of the campaign.
name
- The name of the campaign.public String getName()
The name of the campaign.
public Campaign withName(String name)
The name of the campaign.
name
- The name of the campaign.public void setCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
campaignArn
- The Amazon Resource Name (ARN) of the campaign.public String getCampaignArn()
The Amazon Resource Name (ARN) of the campaign.
public Campaign withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
campaignArn
- The Amazon Resource Name (ARN) of the campaign.public void setSolutionVersionArn(String solutionVersionArn)
The Amazon Resource Name (ARN) of a specific version of the solution.
solutionVersionArn
- The Amazon Resource Name (ARN) of a specific version of the solution.public String getSolutionVersionArn()
The Amazon Resource Name (ARN) of a specific version of the solution.
public Campaign withSolutionVersionArn(String solutionVersionArn)
The Amazon Resource Name (ARN) of a specific version of the solution.
solutionVersionArn
- The Amazon Resource Name (ARN) of a specific version of the solution.public void setMinProvisionedTPS(Integer minProvisionedTPS)
Specifies the requested minimum provisioned transactions (recommendations) per second.
minProvisionedTPS
- Specifies the requested minimum provisioned transactions (recommendations) per second.public Integer getMinProvisionedTPS()
Specifies the requested minimum provisioned transactions (recommendations) per second.
public Campaign withMinProvisionedTPS(Integer minProvisionedTPS)
Specifies the requested minimum provisioned transactions (recommendations) per second.
minProvisionedTPS
- Specifies the requested minimum provisioned transactions (recommendations) per second.public void setStatus(String status)
The status of the campaign.
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
status
- The status of the campaign.
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public String getStatus()
The status of the campaign.
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public Campaign withStatus(String status)
The status of the campaign.
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
status
- The status of the campaign.
A campaign can be in one of the following states:
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
DELETE PENDING > DELETE IN_PROGRESS
public void setFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
failureReason
- If a campaign fails, the reason behind the failure.public String getFailureReason()
If a campaign fails, the reason behind the failure.
public Campaign withFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
failureReason
- If a campaign fails, the reason behind the failure.public void setCreationDateTime(Date creationDateTime)
The date and time (in Unix format) that the campaign was created.
creationDateTime
- The date and time (in Unix format) that the campaign was created.public Date getCreationDateTime()
The date and time (in Unix format) that the campaign was created.
public Campaign withCreationDateTime(Date creationDateTime)
The date and time (in Unix format) that the campaign was created.
creationDateTime
- The date and time (in Unix format) that the campaign was created.public void setLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix format) that the campaign was last updated.
lastUpdatedDateTime
- The date and time (in Unix format) that the campaign was last updated.public Date getLastUpdatedDateTime()
The date and time (in Unix format) that the campaign was last updated.
public Campaign withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix format) that the campaign was last updated.
lastUpdatedDateTime
- The date and time (in Unix format) that the campaign was last updated.public void setLatestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate)
latestCampaignUpdate
- public CampaignUpdateSummary getLatestCampaignUpdate()
public Campaign withLatestCampaignUpdate(CampaignUpdateSummary latestCampaignUpdate)
latestCampaignUpdate
- 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.