All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.aws.greengrass.model.ValidateConfigurationUpdateEvent Maven / Gradle / Ivy

There is a newer version: 1.23.0
Show newest version
/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 *
 * This file is generated.
 */

package software.amazon.awssdk.aws.greengrass.model;

import com.google.gson.annotations.Expose;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage;

public class ValidateConfigurationUpdateEvent implements EventStreamJsonMessage {
  public static final String APPLICATION_MODEL_TYPE = "aws.greengrass#ValidateConfigurationUpdateEvent";

  public static final ValidateConfigurationUpdateEvent VOID;

  static {
    VOID = new ValidateConfigurationUpdateEvent() {
      @Override
      public boolean isVoid() {
        return true;
      }
    };
  }

  @Expose(
      serialize = true,
      deserialize = true
  )
  private Optional> configuration;

  @Expose(
      serialize = true,
      deserialize = true
  )
  private Optional deploymentId;

  public ValidateConfigurationUpdateEvent() {
    this.configuration = Optional.empty();
    this.deploymentId = Optional.empty();
  }

  /**
   * The object that contains the new configuration.
   */
  public Map getConfiguration() {
    if (configuration.isPresent()) {
      return configuration.get();
    }
    return null;
  }

  /**
   * The object that contains the new configuration.
   */
  public void setConfiguration(final Map configuration) {
    this.configuration = Optional.ofNullable(configuration);
  }

  /**
   * The object that contains the new configuration.
   */
  public ValidateConfigurationUpdateEvent withConfiguration(
      final Map configuration) {
    setConfiguration(configuration);
    return this;
  }

  /**
   * The ID of the AWS IoT Greengrass deployment that updates the component.
   */
  public String getDeploymentId() {
    if (deploymentId.isPresent()) {
      return deploymentId.get();
    }
    return null;
  }

  /**
   * The ID of the AWS IoT Greengrass deployment that updates the component.
   */
  public void setDeploymentId(final String deploymentId) {
    this.deploymentId = Optional.ofNullable(deploymentId);
  }

  /**
   * The ID of the AWS IoT Greengrass deployment that updates the component.
   */
  public ValidateConfigurationUpdateEvent withDeploymentId(final String deploymentId) {
    setDeploymentId(deploymentId);
    return this;
  }

  @Override
  public String getApplicationModelType() {
    return APPLICATION_MODEL_TYPE;
  }

  @Override
  public boolean equals(Object rhs) {
    if (rhs == null) return false;
    if (!(rhs instanceof ValidateConfigurationUpdateEvent)) return false;
    if (this == rhs) return true;
    final ValidateConfigurationUpdateEvent other = (ValidateConfigurationUpdateEvent)rhs;
    boolean isEquals = true;
    isEquals = isEquals && this.configuration.equals(other.configuration);
    isEquals = isEquals && this.deploymentId.equals(other.deploymentId);
    return isEquals;
  }

  @Override
  public int hashCode() {
    return Objects.hash(configuration, deploymentId);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy