113 lines
3.2 KiB
C++
113 lines
3.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iot/IoT_EXPORTS.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace IoT
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>When the certificate is valid.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/CertificateValidity">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IOT_API CertificateValidity
|
|
{
|
|
public:
|
|
CertificateValidity();
|
|
CertificateValidity(Aws::Utils::Json::JsonView jsonValue);
|
|
CertificateValidity& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline CertificateValidity& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
|
|
|
|
/**
|
|
* <p>The certificate is not valid before this date.</p>
|
|
*/
|
|
inline CertificateValidity& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetNotAfter() const{ return m_notAfter; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline bool NotAfterHasBeenSet() const { return m_notAfterHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline void SetNotAfter(const Aws::Utils::DateTime& value) { m_notAfterHasBeenSet = true; m_notAfter = value; }
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline void SetNotAfter(Aws::Utils::DateTime&& value) { m_notAfterHasBeenSet = true; m_notAfter = std::move(value); }
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline CertificateValidity& WithNotAfter(const Aws::Utils::DateTime& value) { SetNotAfter(value); return *this;}
|
|
|
|
/**
|
|
* <p>The certificate is not valid after this date.</p>
|
|
*/
|
|
inline CertificateValidity& WithNotAfter(Aws::Utils::DateTime&& value) { SetNotAfter(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::Utils::DateTime m_notBefore;
|
|
bool m_notBeforeHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_notAfter;
|
|
bool m_notAfterHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|