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
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-acm/include/aws/acm/model/KeyUsage.h

80 lines
2.0 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/acm/ACM_EXPORTS.h>
#include <aws/acm/model/KeyUsageName.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace ACM
{
namespace Model
{
/**
* <p>The Key Usage X.509 v3 extension defines the purpose of the public key
* contained in the certificate.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/KeyUsage">AWS API
* Reference</a></p>
*/
class AWS_ACM_API KeyUsage
{
public:
KeyUsage();
KeyUsage(Aws::Utils::Json::JsonView jsonValue);
KeyUsage& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline const KeyUsageName& GetName() const{ return m_name; }
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline void SetName(const KeyUsageName& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline void SetName(KeyUsageName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline KeyUsage& WithName(const KeyUsageName& value) { SetName(value); return *this;}
/**
* <p>A string value that contains a Key Usage extension name.</p>
*/
inline KeyUsage& WithName(KeyUsageName&& value) { SetName(std::move(value)); return *this;}
private:
KeyUsageName m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace ACM
} // namespace Aws