text: /*
   * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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.
   * You may obtain a copy of the License at
   *
   *    http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License 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.
   */
  
  #include <tencentcloud/bmlb/v20180625/model/ModifyLoadBalancerRequest.h>
  #include <tencentcloud/core/utils/rapidjson/document.h>
  #include <tencentcloud/core/utils/rapidjson/writer.h>
  #include <tencentcloud/core/utils/rapidjson/stringbuffer.h>
  
  using namespace TencentCloud::Bmlb::V20180625::Model;
  using namespace rapidjson;
  using namespace std;
  
  ModifyLoadBalancerRequest::ModifyLoadBalancerRequest() :
      m_loadBalancerIdHasBeenSet(false),
      m_loadBalancerNameHasBeenSet(false),
      m_domainPrefixHasBeenSet(false)
  {
  }
  
  string ModifyLoadBalancerRequest::ToJsonString() const
  {
      Document d;
      d.SetObject();
      Document::AllocatorType& allocator = d.GetAllocator();
  
  
      if (m_loadBalancerIdHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "LoadBalancerId";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_loadBalancerId.c_str(), allocator).Move(), allocator);
      }
  
      if (m_loadBalancerNameHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "LoadBalancerName";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_loadBalancerName.c_str(), allocator).Move(), allocator);
      }
  
      if (m_domainPrefixHasBeenSet)
      {
          Value iKey(kStringType);
          string key = "DomainPrefix";
          iKey.SetString(key.c_str(), allocator);
          d.AddMember(iKey, Value(m_domainPrefix.c_str(), allocator).Move(), allocator);
      }
  
  
      StringBuffer buffer;
      Writer<StringBuffer> writer(buffer);
      d.Accept(writer);
      return buffer.GetString();
  }
  
  
  string ModifyLoadBalancerRequest::GetLoadBalancerId() const
  {
      return m_loadBalancerId;
  }
  
  void ModifyLoadBalancerRequest::SetLoadBalancerId(const string& _loadBalancerId)
  {
      m_loadBalancerId = _loadBalancerId;
      m_loadBalancerIdHasBeenSet = true;
  }
  
  bool ModifyLoadBalancerRequest::LoadBalancerIdHasBeenSet() const
  {
      return m_loadBalancerIdHasBeenSet;
  }
  
  string ModifyLoadBalancerRequest::GetLoadBalancerName() const
  {
      return m_loadBalancerName;
  }
  
  void ModifyLoadBalancerRequest::SetLoadBalancerName(const string& _loadBalancerName)
  {
      m_loadBalancerName = _loadBalancerName;
      m_loadBalancerNameHasBeenSet = true;
  }
  
  bool ModifyLoadBalancerRequest::LoadBalancerNameHasBeenSet() const
  {
      return m_loadBalancerNameHasBeenSet;
  }
  
  string ModifyLoadBalancerRequest::GetDomainPrefix() const
  {
      return m_domainPrefix;
  }
  
  void ModifyLoadBalancerRequest::SetDomainPrefix(const string& _domainPrefix)
  {
      m_domainPrefix = _domainPrefix;
      m_domainPrefixHasBeenSet = true;
  }
  
  bool ModifyLoadBalancerRequest::DomainPrefixHasBeenSet() const
  {
      return m_domainPrefixHasBeenSet;
  }
  
  
  