text: ﻿/*
  * 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/resourcegroupstaggingapi/ResourceGroupsTaggingAPI_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace ResourceGroupsTaggingAPI
  {
  namespace Model
  {
  
    /**
     * <p>A list of tags (keys and values) that are used to specify the associated
     * resources.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/resourcegroupstaggingapi-2017-01-26/TagFilter">AWS
     * API Reference</a></p>
     */
    class AWS_RESOURCEGROUPSTAGGINGAPI_API TagFilter
    {
    public:
      TagFilter();
      TagFilter(Aws::Utils::Json::JsonView jsonValue);
      TagFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline const Aws::String& GetKey() const{ return m_key; }
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline TagFilter& WithKey(const Aws::String& value) { SetKey(value); return *this;}
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline TagFilter& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
  
      /**
       * <p>One part of a key-value pair that make up a tag. A key is a general label
       * that acts like a category for more specific tag values.</p>
       */
      inline TagFilter& WithKey(const char* value) { SetKey(value); return *this;}
  
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline const Aws::Vector<Aws::String>& GetValues() const{ return m_values; }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline void SetValues(const Aws::Vector<Aws::String>& value) { m_valuesHasBeenSet = true; m_values = value; }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline void SetValues(Aws::Vector<Aws::String>&& value) { m_valuesHasBeenSet = true; m_values = std::move(value); }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline TagFilter& WithValues(const Aws::Vector<Aws::String>& value) { SetValues(value); return *this;}
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline TagFilter& WithValues(Aws::Vector<Aws::String>&& value) { SetValues(std::move(value)); return *this;}
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline TagFilter& AddValues(const Aws::String& value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline TagFilter& AddValues(Aws::String&& value) { m_valuesHasBeenSet = true; m_values.push_back(std::move(value)); return *this; }
  
      /**
       * <p>The optional part of a key-value pair that make up a tag. A value acts as a
       * descriptor within a tag category (key).</p>
       */
      inline TagFilter& AddValues(const char* value) { m_valuesHasBeenSet = true; m_values.push_back(value); return *this; }
  
    private:
  
      Aws::String m_key;
      bool m_keyHasBeenSet;
  
      Aws::Vector<Aws::String> m_values;
      bool m_valuesHasBeenSet;
    };
  
  } // namespace Model
  } // namespace ResourceGroupsTaggingAPI
  } // namespace Aws
  