/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the country that an IP address originated
* from.See Also:
AWS
* API Reference
The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline const Aws::String& GetCode() const{ return m_code; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline IpCountry& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline IpCountry& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *The two-character code, in ISO 3166-1 alpha-2 format, for the country that * the IP address originated from. For example, US for the United States.
*/ inline IpCountry& WithCode(const char* value) { SetCode(value); return *this;} /** *The name of the country that the IP address originated from.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the country that the IP address originated from.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the country that the IP address originated from.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the country that the IP address originated from.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the country that the IP address originated from.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the country that the IP address originated from.
*/ inline IpCountry& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the country that the IP address originated from.
*/ inline IpCountry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the country that the IP address originated from.
*/ inline IpCountry& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws