/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/route53/Route53_EXPORTS.h>
#include <aws/route53/model/TrafficPolicy.h>

#include <utility>

namespace Aws {
template <typename RESULT_TYPE>
class AmazonWebServiceResult;

namespace Utils {
namespace Xml {
class XmlDocument;
}  // namespace Xml
}  // namespace Utils
namespace Route53 {
namespace Model {
/**
 * <p>A complex type that contains the response information for the
 * request.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/route53-2013-04-01/GetTrafficPolicyResponse">AWS
 * API Reference</a></p>
 */
class GetTrafficPolicyResult {
 public:
  AWS_ROUTE53_API GetTrafficPolicyResult() = default;
  AWS_ROUTE53_API GetTrafficPolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
  AWS_ROUTE53_API GetTrafficPolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);

  ///@{
  /**
   * <p>A complex type that contains settings for the specified traffic policy.</p>
   */
  inline const TrafficPolicy& GetTrafficPolicy() const { return m_trafficPolicy; }
  template <typename TrafficPolicyT = TrafficPolicy>
  void SetTrafficPolicy(TrafficPolicyT&& value) {
    m_trafficPolicyHasBeenSet = true;
    m_trafficPolicy = std::forward<TrafficPolicyT>(value);
  }
  template <typename TrafficPolicyT = TrafficPolicy>
  GetTrafficPolicyResult& WithTrafficPolicy(TrafficPolicyT&& value) {
    SetTrafficPolicy(std::forward<TrafficPolicyT>(value));
    return *this;
  }
  ///@}

  ///@{

  inline const Aws::String& GetRequestId() const { return m_requestId; }
  template <typename RequestIdT = Aws::String>
  void SetRequestId(RequestIdT&& value) {
    m_requestIdHasBeenSet = true;
    m_requestId = std::forward<RequestIdT>(value);
  }
  template <typename RequestIdT = Aws::String>
  GetTrafficPolicyResult& WithRequestId(RequestIdT&& value) {
    SetRequestId(std::forward<RequestIdT>(value));
    return *this;
  }
  ///@}
 private:
  TrafficPolicy m_trafficPolicy;

  Aws::String m_requestId;
  bool m_trafficPolicyHasBeenSet = false;
  bool m_requestIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace Route53
}  // namespace Aws
