126 lines
3.4 KiB
C
126 lines
3.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/chime/Chime_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/DateTime.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 Chime
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The termination health details, including the source IP address and timestamp
|
|||
|
|
* of the last successful SIP <code>OPTIONS</code> message from your SIP
|
|||
|
|
* infrastructure.</p><p><h3>See Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/TerminationHealth">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_CHIME_API TerminationHealth
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
TerminationHealth();
|
|||
|
|
TerminationHealth(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
TerminationHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline TerminationHealth& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The timestamp, in ISO 8601 format.</p>
|
|||
|
|
*/
|
|||
|
|
inline TerminationHealth& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSource() const{ return m_source; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline TerminationHealth& WithSource(const Aws::String& value) { SetSource(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline TerminationHealth& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The source IP address.</p>
|
|||
|
|
*/
|
|||
|
|
inline TerminationHealth& WithSource(const char* value) { SetSource(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_timestamp;
|
|||
|
|
bool m_timestampHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_source;
|
|||
|
|
bool m_sourceHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace Chime
|
|||
|
|
} // namespace Aws
|