/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iotfleetwise.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about a campaign. *

*

* You can use the API operation to return this information about multiple created campaigns. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CampaignSummary implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of a campaign. *

*/ private String arn; /** *

* The name of a campaign. *

*/ private String name; /** *

* The description of the campaign. *

*/ private String description; /** *

* The ARN of the signal catalog associated with the campaign. *

*/ private String signalCatalogArn; /** *

* The ARN of a vehicle or fleet to which the campaign is deployed. *

*/ private String targetArn; /** *

* The state of a campaign. The status can be one of the following: *

* */ private String status; /** *

* The time the campaign was created. *

*/ private java.util.Date creationTime; /** *

* The last time the campaign was modified. *

*/ private java.util.Date lastModificationTime; /** *

* The Amazon Resource Name (ARN) of a campaign. *

* * @param arn * The Amazon Resource Name (ARN) of a campaign. */ public void setArn(String arn) { this.arn = arn; } /** *

* The Amazon Resource Name (ARN) of a campaign. *

* * @return The Amazon Resource Name (ARN) of a campaign. */ public String getArn() { return this.arn; } /** *

* The Amazon Resource Name (ARN) of a campaign. *

* * @param arn * The Amazon Resource Name (ARN) of a campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignSummary withArn(String arn) { setArn(arn); return this; } /** *

* The name of a campaign. *

* * @param name * The name of a campaign. */ public void setName(String name) { this.name = name; } /** *

* The name of a campaign. *

* * @return The name of a campaign. */ public String getName() { return this.name; } /** *

* The name of a campaign. *

* * @param name * The name of a campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignSummary withName(String name) { setName(name); return this; } /** *

* The description of the campaign. *

* * @param description * The description of the campaign. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the campaign. *

* * @return The description of the campaign. */ public String getDescription() { return this.description; } /** *

* The description of the campaign. *

* * @param description * The description of the campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignSummary withDescription(String description) { setDescription(description); return this; } /** *

* The ARN of the signal catalog associated with the campaign. *

* * @param signalCatalogArn * The ARN of the signal catalog associated with the campaign. */ public void setSignalCatalogArn(String signalCatalogArn) { this.signalCatalogArn = signalCatalogArn; } /** *

* The ARN of the signal catalog associated with the campaign. *

* * @return The ARN of the signal catalog associated with the campaign. */ public String getSignalCatalogArn() { return this.signalCatalogArn; } /** *

* The ARN of the signal catalog associated with the campaign. *

* * @param signalCatalogArn * The ARN of the signal catalog associated with the campaign. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignSummary withSignalCatalogArn(String signalCatalogArn) { setSignalCatalogArn(signalCatalogArn); return this; } /** *

* The ARN of a vehicle or fleet to which the campaign is deployed. *

* * @param targetArn * The ARN of a vehicle or fleet to which the campaign is deployed. */ public void setTargetArn(String targetArn) { this.targetArn = targetArn; } /** *

* The ARN of a vehicle or fleet to which the campaign is deployed. *

* * @return The ARN of a vehicle or fleet to which the campaign is deployed. */ public String getTargetArn() { return this.targetArn; } /** *

* The ARN of a vehicle or fleet to which the campaign is deployed. *

* * @param targetArn * The ARN of a vehicle or fleet to which the campaign is deployed. * @return Returns a reference to this object so that method calls can be chained together. */ public CampaignSummary withTargetArn(String targetArn) { setTargetArn(targetArn); return this; } /** *

* The state of a campaign. The status can be one of the following: *

* * * @param status * The state of a campaign. The status can be one of the following:

*