text: ﻿/**
   * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * SPDX-License-Identifier: Apache-2.0.
   */
  
  #pragma once
  #include <aws/ssm/SSM_EXPORTS.h>
  #include <aws/ssm/model/InstanceInformationFilterKey.h>
  #include <aws/core/utils/memory/stl/AWSVector.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace SSM
  {
  namespace Model
  {
  
    /**
     * <p>Describes a filter for a specific list of managed nodes. You can filter node
     * information by using tags. You specify tags by using a key-value mapping.</p>
     * <p>Use this operation instead of the
     * <a>DescribeInstanceInformationRequest$InstanceInformationFilterList</a> method.
     * The <code>InstanceInformationFilterList</code> method is a legacy method and
     * doesn't support tags. </p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/InstanceInformationFilter">AWS
     * API Reference</a></p>
     */
    class AWS_SSM_API InstanceInformationFilter
    {
    public:
      InstanceInformationFilter();
      InstanceInformationFilter(Aws::Utils::Json::JsonView jsonValue);
      InstanceInformationFilter& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The name of the filter. </p>
       */
      inline const InstanceInformationFilterKey& GetKey() const{ return m_key; }
  
      /**
       * <p>The name of the filter. </p>
       */
      inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
  
      /**
       * <p>The name of the filter. </p>
       */
      inline void SetKey(const InstanceInformationFilterKey& value) { m_keyHasBeenSet = true; m_key = value; }
  
      /**
       * <p>The name of the filter. </p>
       */
      inline void SetKey(InstanceInformationFilterKey&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
  
      /**
       * <p>The name of the filter. </p>
       */
      inline InstanceInformationFilter& WithKey(const InstanceInformationFilterKey& value) { SetKey(value); return *this;}
  
      /**
       * <p>The name of the filter. </p>
       */
      inline InstanceInformationFilter& WithKey(InstanceInformationFilterKey&& value) { SetKey(std::move(value)); return *this;}
  
  
      /**
       * <p>The filter values.</p>
       */
      inline const Aws::Vector<Aws::String>& GetValueSet() const{ return m_valueSet; }
  
      /**
       * <p>The filter values.</p>
       */
      inline bool ValueSetHasBeenSet() const { return m_valueSetHasBeenSet; }
  
      /**
       * <p>The filter values.</p>
       */
      inline void SetValueSet(const Aws::Vector<Aws::String>& value) { m_valueSetHasBeenSet = true; m_valueSet = value; }
  
      /**
       * <p>The filter values.</p>
       */
      inline void SetValueSet(Aws::Vector<Aws::String>&& value) { m_valueSetHasBeenSet = true; m_valueSet = std::move(value); }
  
      /**
       * <p>The filter values.</p>
       */
      inline InstanceInformationFilter& WithValueSet(const Aws::Vector<Aws::String>& value) { SetValueSet(value); return *this;}
  
      /**
       * <p>The filter values.</p>
       */
      inline InstanceInformationFilter& WithValueSet(Aws::Vector<Aws::String>&& value) { SetValueSet(std::move(value)); return *this;}
  
      /**
       * <p>The filter values.</p>
       */
      inline InstanceInformationFilter& AddValueSet(const Aws::String& value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(value); return *this; }
  
      /**
       * <p>The filter values.</p>
       */
      inline InstanceInformationFilter& AddValueSet(Aws::String&& value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(std::move(value)); return *this; }
  
      /**
       * <p>The filter values.</p>
       */
      inline InstanceInformationFilter& AddValueSet(const char* value) { m_valueSetHasBeenSet = true; m_valueSet.push_back(value); return *this; }
  
    private:
  
      InstanceInformationFilterKey m_key;
      bool m_keyHasBeenSet;
  
      Aws::Vector<Aws::String> m_valueSet;
      bool m_valueSetHasBeenSet;
    };
  
  } // namespace Model
  } // namespace SSM
  } // namespace Aws
  