text: /*
  * Copyright 2010-2016 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/waf/WAF_EXPORTS.h>
  #include <aws/waf/WAFRequest.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/waf/model/IPSetUpdate.h>
  
  namespace Aws
  {
  namespace WAF
  {
  namespace Model
  {
  
    /**
     */
    class AWS_WAF_API UpdateIPSetRequest : public WAFRequest
    {
    public:
      UpdateIPSetRequest();
      Aws::String SerializePayload() const override;
  
      Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline const Aws::String& GetIPSetId() const{ return m_iPSetId; }
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline void SetIPSetId(const Aws::String& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline void SetIPSetId(Aws::String&& value) { m_iPSetIdHasBeenSet = true; m_iPSetId = value; }
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline void SetIPSetId(const char* value) { m_iPSetIdHasBeenSet = true; m_iPSetId.assign(value); }
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline UpdateIPSetRequest& WithIPSetId(const Aws::String& value) { SetIPSetId(value); return *this;}
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline UpdateIPSetRequest& WithIPSetId(Aws::String&& value) { SetIPSetId(value); return *this;}
  
      /**
       * <p>The <code>IPSetId</code> of the <a>IPSet</a> that you want to update.
       * <code>IPSetId</code> is returned by <a>CreateIPSet</a> and by
       * <a>ListIPSets</a>.</p>
       */
      inline UpdateIPSetRequest& WithIPSetId(const char* value) { SetIPSetId(value); return *this;}
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline const Aws::String& GetChangeToken() const{ return m_changeToken; }
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline void SetChangeToken(const Aws::String& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline void SetChangeToken(Aws::String&& value) { m_changeTokenHasBeenSet = true; m_changeToken = value; }
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline void SetChangeToken(const char* value) { m_changeTokenHasBeenSet = true; m_changeToken.assign(value); }
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline UpdateIPSetRequest& WithChangeToken(const Aws::String& value) { SetChangeToken(value); return *this;}
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline UpdateIPSetRequest& WithChangeToken(Aws::String&& value) { SetChangeToken(value); return *this;}
  
      /**
       * <p>The value returned by the most recent call to <a>GetChangeToken</a>.</p>
       */
      inline UpdateIPSetRequest& WithChangeToken(const char* value) { SetChangeToken(value); return *this;}
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline const Aws::Vector<IPSetUpdate>& GetUpdates() const{ return m_updates; }
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline void SetUpdates(const Aws::Vector<IPSetUpdate>& value) { m_updatesHasBeenSet = true; m_updates = value; }
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline void SetUpdates(Aws::Vector<IPSetUpdate>&& value) { m_updatesHasBeenSet = true; m_updates = value; }
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline UpdateIPSetRequest& WithUpdates(const Aws::Vector<IPSetUpdate>& value) { SetUpdates(value); return *this;}
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline UpdateIPSetRequest& WithUpdates(Aws::Vector<IPSetUpdate>&& value) { SetUpdates(value); return *this;}
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline UpdateIPSetRequest& AddUpdates(const IPSetUpdate& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
  
      /**
       * <p>An array of <code>IPSetUpdate</code> objects that you want to insert into or
       * delete from an <a>IPSet</a>. For more information, see the applicable data
       * types:</p> <ul> <li><a>IPSetUpdate</a>: Contains <code>Action</code> and
       * <code>IPSetDescriptor</code></li> <li><a>IPSetDescriptor</a>: Contains
       * <code>Type</code> and <code>Value</code></li> </ul>
       */
      inline UpdateIPSetRequest& AddUpdates(IPSetUpdate&& value) { m_updatesHasBeenSet = true; m_updates.push_back(value); return *this; }
  
    private:
      Aws::String m_iPSetId;
      bool m_iPSetIdHasBeenSet;
      Aws::String m_changeToken;
      bool m_changeTokenHasBeenSet;
      Aws::Vector<IPSetUpdate> m_updates;
      bool m_updatesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace WAF
  } // namespace Aws
  