This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

113 lines
2.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/dynamodb/DynamoDB_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace DynamoDB
{
namespace Model
{
/**
* <p>An endpoint information details.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/dynamodb-2012-08-10/Endpoint">AWS
* API Reference</a></p>
*/
class AWS_DYNAMODB_API Endpoint
{
public:
Endpoint();
Endpoint(Aws::Utils::Json::JsonView jsonValue);
Endpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>IP address of the endpoint.</p>
*/
inline const Aws::String& GetAddress() const{ return m_address; }
/**
* <p>IP address of the endpoint.</p>
*/
inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
/**
* <p>IP address of the endpoint.</p>
*/
inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
/**
* <p>IP address of the endpoint.</p>
*/
inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
/**
* <p>IP address of the endpoint.</p>
*/
inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
/**
* <p>IP address of the endpoint.</p>
*/
inline Endpoint& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
/**
* <p>IP address of the endpoint.</p>
*/
inline Endpoint& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
/**
* <p>IP address of the endpoint.</p>
*/
inline Endpoint& WithAddress(const char* value) { SetAddress(value); return *this;}
/**
* <p>Endpoint cache time to live (TTL) value.</p>
*/
inline long long GetCachePeriodInMinutes() const{ return m_cachePeriodInMinutes; }
/**
* <p>Endpoint cache time to live (TTL) value.</p>
*/
inline bool CachePeriodInMinutesHasBeenSet() const { return m_cachePeriodInMinutesHasBeenSet; }
/**
* <p>Endpoint cache time to live (TTL) value.</p>
*/
inline void SetCachePeriodInMinutes(long long value) { m_cachePeriodInMinutesHasBeenSet = true; m_cachePeriodInMinutes = value; }
/**
* <p>Endpoint cache time to live (TTL) value.</p>
*/
inline Endpoint& WithCachePeriodInMinutes(long long value) { SetCachePeriodInMinutes(value); return *this;}
private:
Aws::String m_address;
bool m_addressHasBeenSet;
long long m_cachePeriodInMinutes;
bool m_cachePeriodInMinutesHasBeenSet;
};
} // namespace Model
} // namespace DynamoDB
} // namespace Aws