/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceDiscovery { namespace Model { /** *

Start of Authority (SOA) properties for a public or private DNS * namespace.

See Also:

AWS * API Reference

*/ class SOA { public: AWS_SERVICEDISCOVERY_API SOA(); AWS_SERVICEDISCOVERY_API SOA(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API SOA& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time to live (TTL) for purposes of negative caching.

*/ inline long long GetTTL() const{ return m_tTL; } /** *

The time to live (TTL) for purposes of negative caching.

*/ inline bool TTLHasBeenSet() const { return m_tTLHasBeenSet; } /** *

The time to live (TTL) for purposes of negative caching.

*/ inline void SetTTL(long long value) { m_tTLHasBeenSet = true; m_tTL = value; } /** *

The time to live (TTL) for purposes of negative caching.

*/ inline SOA& WithTTL(long long value) { SetTTL(value); return *this;} private: long long m_tTL; bool m_tTLHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws