/**
 * 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/WorkSpaceAssociatedResourceType.h>

#include <utility>

namespace Aws {
namespace WorkSpaces {
namespace Model {

/**
 */
class DescribeWorkspaceAssociationsRequest : public WorkSpacesRequest {
 public:
  AWS_WORKSPACES_API DescribeWorkspaceAssociationsRequest() = 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 "DescribeWorkspaceAssociations"; }

  AWS_WORKSPACES_API Aws::String SerializePayload() const override;

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

  ///@{
  /**
   * <p>The identifier of the WorkSpace.</p>
   */
  inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
  inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
  template <typename WorkspaceIdT = Aws::String>
  void SetWorkspaceId(WorkspaceIdT&& value) {
    m_workspaceIdHasBeenSet = true;
    m_workspaceId = std::forward<WorkspaceIdT>(value);
  }
  template <typename WorkspaceIdT = Aws::String>
  DescribeWorkspaceAssociationsRequest& WithWorkspaceId(WorkspaceIdT&& value) {
    SetWorkspaceId(std::forward<WorkspaceIdT>(value));
    return *this;
  }
  ///@}

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

  Aws::Vector<WorkSpaceAssociatedResourceType> m_associatedResourceTypes;
  bool m_workspaceIdHasBeenSet = false;
  bool m_associatedResourceTypesHasBeenSet = false;
};

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