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/codebuild/CodeBuild_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 CodeBuild
  {
  namespace Model
  {
  
    /**
     * <p>Information about the VPC configuration that AWS CodeBuild
     * accesses.</p><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/codebuild-2016-10-06/VpcConfig">AWS
     * API Reference</a></p>
     */
    class AWS_CODEBUILD_API VpcConfig
    {
    public:
      VpcConfig();
      VpcConfig(Aws::Utils::Json::JsonView jsonValue);
      VpcConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline const Aws::String& GetVpcId() const{ return m_vpcId; }
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline VpcConfig& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline VpcConfig& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
  
      /**
       * <p>The ID of the Amazon VPC.</p>
       */
      inline VpcConfig& WithVpcId(const char* value) { SetVpcId(value); return *this;}
  
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = std::move(value); }
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(std::move(value)); return *this;}
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(std::move(value)); return *this; }
  
      /**
       * <p>A list of one or more subnet IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
  
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
  
      /**
       * <p>A list of one or more security groups IDs in your Amazon VPC.</p>
       */
      inline VpcConfig& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
  
    private:
  
      Aws::String m_vpcId;
      bool m_vpcIdHasBeenSet;
  
      Aws::Vector<Aws::String> m_subnets;
      bool m_subnetsHasBeenSet;
  
      Aws::Vector<Aws::String> m_securityGroupIds;
      bool m_securityGroupIdsHasBeenSet;
    };
  
  } // namespace Model
  } // namespace CodeBuild
  } // namespace Aws
  