/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/workspaces/WorkSpacesRequest.h>
#include <aws/workspaces/WorkSpaces_EXPORTS.h>
#include <aws/workspaces/model/ImageAssociatedResourceType.h>

#include <utility>

namespace Aws {
namespace WorkSpaces {
namespace Model {

/**
 */
class DescribeImageAssociationsRequest : public WorkSpacesRequest {
 public:
  AWS_WORKSPACES_API DescribeImageAssociationsRequest() = default;

  // Service request name is the Operation name which will send this request out,
  // each operation should has unique request name, so that we can get operation's name from this request.
  // Note: this is not true for response, multiple operations may have the same response name,
  // so we can not get operation's name from response.
  inline virtual const char* GetServiceRequestName() const override { return "DescribeImageAssociations"; }

  AWS_WORKSPACES_API Aws::String SerializePayload() const override;

  AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The identifier of the image.</p>
   */
  inline const Aws::String& GetImageId() const { return m_imageId; }
  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
  template <typename ImageIdT = Aws::String>
  void SetImageId(ImageIdT&& value) {
    m_imageIdHasBeenSet = true;
    m_imageId = std::forward<ImageIdT>(value);
  }
  template <typename ImageIdT = Aws::String>
  DescribeImageAssociationsRequest& WithImageId(ImageIdT&& value) {
    SetImageId(std::forward<ImageIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The resource types of the associated resource.</p>
   */
  inline const Aws::Vector<ImageAssociatedResourceType>& GetAssociatedResourceTypes() const { return m_associatedResourceTypes; }
  inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
  template <typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
  void SetAssociatedResourceTypes(AssociatedResourceTypesT&& value) {
    m_associatedResourceTypesHasBeenSet = true;
    m_associatedResourceTypes = std::forward<AssociatedResourceTypesT>(value);
  }
  template <typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
  DescribeImageAssociationsRequest& WithAssociatedResourceTypes(AssociatedResourceTypesT&& value) {
    SetAssociatedResourceTypes(std::forward<AssociatedResourceTypesT>(value));
    return *this;
  }
  inline DescribeImageAssociationsRequest& AddAssociatedResourceTypes(ImageAssociatedResourceType value) {
    m_associatedResourceTypesHasBeenSet = true;
    m_associatedResourceTypes.push_back(value);
    return *this;
  }
  ///@}
 private:
  Aws::String m_imageId;

  Aws::Vector<ImageAssociatedResourceType> m_associatedResourceTypes;
  bool m_imageIdHasBeenSet = false;
  bool m_associatedResourceTypesHasBeenSet = false;
};

}  // namespace Model
}  // namespace WorkSpaces
}  // namespace Aws
