/* * 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.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateCampaignRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The name of the campaign to update. *
*/ private String name; /** ** The description of the campaign. *
*/ private String description; /** ** A list of vehicle attributes to associate with a signal. *
** Default: An empty array *
*/ private java.util.List* Specifies how to update a campaign. The action can be one of the following: *
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles
* in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all vehicles
* and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* The name of the campaign to update. *
* * @param name * The name of the campaign to update. */ public void setName(String name) { this.name = name; } /** ** The name of the campaign to update. *
* * @return The name of the campaign to update. */ public String getName() { return this.name; } /** ** The name of the campaign to update. *
* * @param name * The name of the campaign to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateCampaignRequest 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 UpdateCampaignRequest withDescription(String description) { setDescription(description); return this; } /** ** A list of vehicle attributes to associate with a signal. *
** Default: An empty array *
* * @return A list of vehicle attributes to associate with a signal. *
* Default: An empty array
*/
public java.util.List
* A list of vehicle attributes to associate with a signal.
*
* Default: An empty array
*
* Default: An empty array
*/
public void setDataExtraDimensions(java.util.Collection
* A list of vehicle attributes to associate with a signal.
*
* Default: An empty array
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDataExtraDimensions(java.util.Collection)} or {@link #withDataExtraDimensions(java.util.Collection)}
* if you want to override the existing values.
*
* Default: An empty array
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateCampaignRequest withDataExtraDimensions(String... dataExtraDimensions) {
if (this.dataExtraDimensions == null) {
setDataExtraDimensions(new java.util.ArrayList
* A list of vehicle attributes to associate with a signal.
*
* Default: An empty array
*
* Default: An empty array
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateCampaignRequest withDataExtraDimensions(java.util.Collection
* Specifies how to update a campaign. The action can be one of the following:
*
*
*
*
*
*
*
* @param action
* Specifies how to update a campaign. The action can be one of the following:APPROVE
- To approve delivering a data collection scheme to vehicles.
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles
* in the suspended campaign will stop sending data.
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all vehicles
* and the vehicles will resume sending data.
* UPDATE
- To update a campaign.
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all
* vehicles in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all
* vehicles and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* Specifies how to update a campaign. The action can be one of the following: *
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles
* in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all vehicles
* and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all
* vehicles in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all
* vehicles and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* Specifies how to update a campaign. The action can be one of the following: *
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles
* in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all vehicles
* and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all
* vehicles in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all
* vehicles and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* Specifies how to update a campaign. The action can be one of the following: *
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles
* in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all vehicles
* and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*
* APPROVE
- To approve delivering a data collection scheme to vehicles.
*
* SUSPEND
- To suspend collecting signal data. The campaign is deleted from vehicles and all
* vehicles in the suspended campaign will stop sending data.
*
* RESUME
- To reactivate the SUSPEND
campaign. The campaign is redeployed to all
* vehicles and the vehicles will resume sending data.
*
* UPDATE
- To update a campaign.
*