/* * 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.greengrassv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a deployment's update to a component's configuration on Greengrass core devices. For more * information, see Update component * configurations in the IoT Greengrass V2 Developer Guide. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ComponentConfigurationUpdate implements Serializable, Cloneable, StructuredPojo { /** ** A serialized JSON string that contains the configuration object to merge to target devices. The core device * merges this configuration with the component's existing configuration. If this is the first time a component * deploys on a device, the core device merges this configuration with the component's default configuration. This * means that the core device keeps it's existing configuration for keys and values that you don't specify in this * object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. *
*/ private String merge; /** *
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each
* node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the
* key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*
* A serialized JSON string that contains the configuration object to merge to target devices. The core device * merges this configuration with the component's existing configuration. If this is the first time a component * deploys on a device, the core device merges this configuration with the component's default configuration. This * means that the core device keeps it's existing configuration for keys and values that you don't specify in this * object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. *
* * @param merge * A serialized JSON string that contains the configuration object to merge to target devices. The core * device merges this configuration with the component's existing configuration. If this is the first time a * component deploys on a device, the core device merges this configuration with the component's default * configuration. This means that the core device keeps it's existing configuration for keys and values that * you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. */ public void setMerge(String merge) { this.merge = merge; } /** ** A serialized JSON string that contains the configuration object to merge to target devices. The core device * merges this configuration with the component's existing configuration. If this is the first time a component * deploys on a device, the core device merges this configuration with the component's default configuration. This * means that the core device keeps it's existing configuration for keys and values that you don't specify in this * object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. *
* * @return A serialized JSON string that contains the configuration object to merge to target devices. The core * device merges this configuration with the component's existing configuration. If this is the first time a * component deploys on a device, the core device merges this configuration with the component's default * configuration. This means that the core device keeps it's existing configuration for keys and values that * you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. */ public String getMerge() { return this.merge; } /** ** A serialized JSON string that contains the configuration object to merge to target devices. The core device * merges this configuration with the component's existing configuration. If this is the first time a component * deploys on a device, the core device merges this configuration with the component's default configuration. This * means that the core device keeps it's existing configuration for keys and values that you don't specify in this * object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. *
* * @param merge * A serialized JSON string that contains the configuration object to merge to target devices. The core * device merges this configuration with the component's existing configuration. If this is the first time a * component deploys on a device, the core device merges this configuration with the component's default * configuration. This means that the core device keeps it's existing configuration for keys and values that * you don't specify in this object. For more information, see Merge configuration updates in the IoT Greengrass V2 Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ComponentConfigurationUpdate withMerge(String merge) { setMerge(merge); return this; } /** *
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each
* node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the
* key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*
/
) and use forward
* slashes to separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*/
public java.util.List
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each
* node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the
* key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*
/
) and use forward slashes to
* separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*/
public void setReset(java.util.Collection
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each
* node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the
* key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setReset(java.util.Collection)} or {@link #withReset(java.util.Collection)} if you want to override the * existing values. *
* * @param reset * The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify * each node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to
* separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComponentConfigurationUpdate withReset(String... reset) {
if (this.reset == null) {
setReset(new java.util.ArrayList
* The list of configuration nodes to reset to default values on target devices. Use JSON pointers to specify each
* node to reset. JSON pointers start with a forward slash (/
) and use forward slashes to separate the
* key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
*
/
) and use forward slashes to
* separate the key for each level in the object. For more information, see the JSON pointer specification and Reset configuration updates in the IoT Greengrass V2 Developer Guide.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ComponentConfigurationUpdate withReset(java.util.Collection