/*
* Copyright 2010-2017 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.
*/

#pragma once
#include <aws/organizations/Organizations_EXPORTS.h>
#include <aws/organizations/OrganizationsRequest.h>
#include <aws/organizations/model/HandshakeFilter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Organizations
{
namespace Model
{

  /**
   */
  class AWS_ORGANIZATIONS_API ListHandshakesForAccountRequest : public OrganizationsRequest
  {
  public:
    ListHandshakesForAccountRequest();
    Aws::String SerializePayload() const override;

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


    /**
     * <p>Filters the handshakes that you want included in the response. The default is
     * all types. Use the <code>ActionType</code> element to limit the output to only a
     * specified type, such as <code>INVITE</code>, <code>ENABLE-FULL-CONTROL</code>,
     * or <code>APPROVE-FULL-CONTROL</code>. Alternatively, for the
     * <code>ENABLE-FULL-CONTROL</code> handshake that generates a separate child
     * handshake for each member account, you can specify
     * <code>ParentHandshakeId</code> to see only the handshakes that were generated by
     * that parent request.</p>
     */
    inline const HandshakeFilter& GetFilter() const{ return m_filter; }

    /**
     * <p>Filters the handshakes that you want included in the response. The default is
     * all types. Use the <code>ActionType</code> element to limit the output to only a
     * specified type, such as <code>INVITE</code>, <code>ENABLE-FULL-CONTROL</code>,
     * or <code>APPROVE-FULL-CONTROL</code>. Alternatively, for the
     * <code>ENABLE-FULL-CONTROL</code> handshake that generates a separate child
     * handshake for each member account, you can specify
     * <code>ParentHandshakeId</code> to see only the handshakes that were generated by
     * that parent request.</p>
     */
    inline void SetFilter(const HandshakeFilter& value) { m_filterHasBeenSet = true; m_filter = value; }

    /**
     * <p>Filters the handshakes that you want included in the response. The default is
     * all types. Use the <code>ActionType</code> element to limit the output to only a
     * specified type, such as <code>INVITE</code>, <code>ENABLE-FULL-CONTROL</code>,
     * or <code>APPROVE-FULL-CONTROL</code>. Alternatively, for the
     * <code>ENABLE-FULL-CONTROL</code> handshake that generates a separate child
     * handshake for each member account, you can specify
     * <code>ParentHandshakeId</code> to see only the handshakes that were generated by
     * that parent request.</p>
     */
    inline void SetFilter(HandshakeFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }

    /**
     * <p>Filters the handshakes that you want included in the response. The default is
     * all types. Use the <code>ActionType</code> element to limit the output to only a
     * specified type, such as <code>INVITE</code>, <code>ENABLE-FULL-CONTROL</code>,
     * or <code>APPROVE-FULL-CONTROL</code>. Alternatively, for the
     * <code>ENABLE-FULL-CONTROL</code> handshake that generates a separate child
     * handshake for each member account, you can specify
     * <code>ParentHandshakeId</code> to see only the handshakes that were generated by
     * that parent request.</p>
     */
    inline ListHandshakesForAccountRequest& WithFilter(const HandshakeFilter& value) { SetFilter(value); return *this;}

    /**
     * <p>Filters the handshakes that you want included in the response. The default is
     * all types. Use the <code>ActionType</code> element to limit the output to only a
     * specified type, such as <code>INVITE</code>, <code>ENABLE-FULL-CONTROL</code>,
     * or <code>APPROVE-FULL-CONTROL</code>. Alternatively, for the
     * <code>ENABLE-FULL-CONTROL</code> handshake that generates a separate child
     * handshake for each member account, you can specify
     * <code>ParentHandshakeId</code> to see only the handshakes that were generated by
     * that parent request.</p>
     */
    inline ListHandshakesForAccountRequest& WithFilter(HandshakeFilter&& value) { SetFilter(std::move(value)); return *this;}


    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline const Aws::String& GetNextToken() const{ return m_nextToken; }

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline ListHandshakesForAccountRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline ListHandshakesForAccountRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}

    /**
     * <p>Use this parameter if you receive a <code>NextToken</code> response in a
     * previous request that indicates that there is more output available. Set it to
     * the value of the previous call's <code>NextToken</code> response to indicate
     * where the output should continue from.</p>
     */
    inline ListHandshakesForAccountRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}


    /**
     * <p>(Optional) Use this to limit the number of results you want included in the
     * response. If you do not include this parameter, it defaults to a value that is
     * specific to the operation. If additional items exist beyond the maximum you
     * specify, the <code>NextToken</code> response element is present and has a value
     * (is not null). Include that value as the <code>NextToken</code> request
     * parameter in the next call to the operation to get the next part of the results.
     * Note that Organizations might return fewer results than the maximum even when
     * there are more results available. You should check <code>NextToken</code> after
     * every operation to ensure that you receive all of the results.</p>
     */
    inline int GetMaxResults() const{ return m_maxResults; }

    /**
     * <p>(Optional) Use this to limit the number of results you want included in the
     * response. If you do not include this parameter, it defaults to a value that is
     * specific to the operation. If additional items exist beyond the maximum you
     * specify, the <code>NextToken</code> response element is present and has a value
     * (is not null). Include that value as the <code>NextToken</code> request
     * parameter in the next call to the operation to get the next part of the results.
     * Note that Organizations might return fewer results than the maximum even when
     * there are more results available. You should check <code>NextToken</code> after
     * every operation to ensure that you receive all of the results.</p>
     */
    inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }

    /**
     * <p>(Optional) Use this to limit the number of results you want included in the
     * response. If you do not include this parameter, it defaults to a value that is
     * specific to the operation. If additional items exist beyond the maximum you
     * specify, the <code>NextToken</code> response element is present and has a value
     * (is not null). Include that value as the <code>NextToken</code> request
     * parameter in the next call to the operation to get the next part of the results.
     * Note that Organizations might return fewer results than the maximum even when
     * there are more results available. You should check <code>NextToken</code> after
     * every operation to ensure that you receive all of the results.</p>
     */
    inline ListHandshakesForAccountRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}

  private:

    HandshakeFilter m_filter;
    bool m_filterHasBeenSet;

    Aws::String m_nextToken;
    bool m_nextTokenHasBeenSet;

    int m_maxResults;
    bool m_maxResultsHasBeenSet;
  };

} // namespace Model
} // namespace Organizations
} // namespace Aws
