@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignSummary extends Object implements Serializable, Cloneable, StructuredPojo
Provides a summary of the properties of a campaign. For a complete listing, call the DescribeCampaign API.
Constructor and Description |
---|
CampaignSummary() |
Modifier and Type | Method and Description |
---|---|
CampaignSummary |
clone() |
boolean |
equals(Object obj) |
String |
getCampaignArn()
The Amazon Resource Name (ARN) of the campaign.
|
Date |
getCreationDateTime()
The date and time (in Unix time) that the campaign was created.
|
String |
getFailureReason()
If a campaign fails, the reason behind the failure.
|
Date |
getLastUpdatedDateTime()
The date and time (in Unix time) that the campaign was last updated.
|
String |
getName()
The name of the campaign.
|
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 time) 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 time) that the campaign was last updated.
|
void |
setName(String name)
The name of the campaign.
|
void |
setStatus(String status)
The status of the campaign.
|
String |
toString()
Returns a string representation of this object.
|
CampaignSummary |
withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
|
CampaignSummary |
withCreationDateTime(Date creationDateTime)
The date and time (in Unix time) that the campaign was created.
|
CampaignSummary |
withFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
|
CampaignSummary |
withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the campaign was last updated.
|
CampaignSummary |
withName(String name)
The name of the campaign.
|
CampaignSummary |
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 CampaignSummary 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 CampaignSummary withCampaignArn(String campaignArn)
The Amazon Resource Name (ARN) of the campaign.
campaignArn
- The Amazon Resource Name (ARN) of the campaign.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 CampaignSummary 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 setCreationDateTime(Date creationDateTime)
The date and time (in Unix time) that the campaign was created.
creationDateTime
- The date and time (in Unix time) that the campaign was created.public Date getCreationDateTime()
The date and time (in Unix time) that the campaign was created.
public CampaignSummary withCreationDateTime(Date creationDateTime)
The date and time (in Unix time) that the campaign was created.
creationDateTime
- The date and time (in Unix time) that the campaign was created.public void setLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the campaign was last updated.
lastUpdatedDateTime
- The date and time (in Unix time) that the campaign was last updated.public Date getLastUpdatedDateTime()
The date and time (in Unix time) that the campaign was last updated.
public CampaignSummary withLastUpdatedDateTime(Date lastUpdatedDateTime)
The date and time (in Unix time) that the campaign was last updated.
lastUpdatedDateTime
- The date and time (in Unix time) that the campaign was last updated.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 CampaignSummary withFailureReason(String failureReason)
If a campaign fails, the reason behind the failure.
failureReason
- If a campaign fails, the reason behind the failure.public String toString()
toString
in class Object
Object.toString()
public CampaignSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.