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/organizations/Organizations_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/organizations/model/ParentType.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
  } // namespace Json
  } // namespace Utils
  namespace Organizations
  {
  namespace Model
  {
  
    /**
     * <p>Contains information about either a root or an organizational unit (OU) that
     * can contain OUs or accounts in an organization.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/Parent">AWS
     * API Reference</a></p>
     */
    class AWS_ORGANIZATIONS_API Parent
    {
    public:
      Parent();
      Parent(const Aws::Utils::Json::JsonValue& jsonValue);
      Parent& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline const Aws::String& GetId() const{ return m_id; }
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline Parent& WithId(const Aws::String& value) { SetId(value); return *this;}
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline Parent& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
  
      /**
       * <p>The unique identifier (ID) of the parent entity.</p> <p>The <a
       * href="http://wikipedia.org/wiki/regex">regex pattern</a> for a parent ID string
       * requires one of the following:</p> <ul> <li> <p>Root: a string that begins with
       * "r-" followed by from 4 to 32 lower-case letters or digits.</p> </li> <li>
       * <p>Organizational unit (OU): a string that begins with "ou-" followed by from 4
       * to 32 lower-case letters or digits (the ID of the root that the OU is in)
       * followed by a second "-" dash and from 8 to 32 additional lower-case letters or
       * digits.</p> </li> </ul>
       */
      inline Parent& WithId(const char* value) { SetId(value); return *this;}
  
  
      /**
       * <p>The type of the parent entity.</p>
       */
      inline const ParentType& GetType() const{ return m_type; }
  
      /**
       * <p>The type of the parent entity.</p>
       */
      inline void SetType(const ParentType& value) { m_typeHasBeenSet = true; m_type = value; }
  
      /**
       * <p>The type of the parent entity.</p>
       */
      inline void SetType(ParentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
  
      /**
       * <p>The type of the parent entity.</p>
       */
      inline Parent& WithType(const ParentType& value) { SetType(value); return *this;}
  
      /**
       * <p>The type of the parent entity.</p>
       */
      inline Parent& WithType(ParentType&& value) { SetType(std::move(value)); return *this;}
  
    private:
  
      Aws::String m_id;
      bool m_idHasBeenSet;
  
      ParentType m_type;
      bool m_typeHasBeenSet;
    };
  
  } // namespace Model
  } // namespace Organizations
  } // namespace Aws
  