/* * 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 dataExtraDimensions; /** *

* Specifies how to update a campaign. The action can be one of the following: *

* */ private String action; /** *

* 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 getDataExtraDimensions() { return dataExtraDimensions; } /** *

* A list of vehicle attributes to associate with a signal. *

*

* Default: An empty array *

* * @param dataExtraDimensions * A list of vehicle attributes to associate with a signal.

*

* Default: An empty array */ public void setDataExtraDimensions(java.util.Collection dataExtraDimensions) { if (dataExtraDimensions == null) { this.dataExtraDimensions = null; return; } this.dataExtraDimensions = new java.util.ArrayList(dataExtraDimensions); } /** *

* 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. *

* * @param dataExtraDimensions * A list of vehicle attributes to associate with a signal.

*

* 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(dataExtraDimensions.length)); } for (String ele : dataExtraDimensions) { this.dataExtraDimensions.add(ele); } return this; } /** *

* A list of vehicle attributes to associate with a signal. *

*

* Default: An empty array *

* * @param dataExtraDimensions * A list of vehicle attributes to associate with a signal.

*

* 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 dataExtraDimensions) { setDataExtraDimensions(dataExtraDimensions); return this; } /** *

* 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:

*