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-ssm/include/aws/ssm/model/ComplianceItemEntry.h

309 lines
12 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/ComplianceSeverity.h>
#include <aws/ssm/model/ComplianceStatus.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about a compliance item.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/ComplianceItemEntry">AWS
* API Reference</a></p>
*/
class AWS_SSM_API ComplianceItemEntry
{
public:
ComplianceItemEntry();
ComplianceItemEntry(Aws::Utils::Json::JsonView jsonValue);
ComplianceItemEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The compliance item ID. For example, if the compliance item is a Windows
* patch, the ID could be the number of the KB article.</p>
*/
inline ComplianceItemEntry& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>The title of the compliance item. For example, if the compliance item is a
* Windows patch, the title could be the title of the KB article for the patch; for
* example: Security Update for Active Directory Federation Services. </p>
*/
inline ComplianceItemEntry& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline const ComplianceSeverity& GetSeverity() const{ return m_severity; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItemEntry& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;}
/**
* <p>The severity of the compliance status. Severity can be one of the following:
* Critical, High, Medium, Low, Informational, Unspecified.</p>
*/
inline ComplianceItemEntry& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline const ComplianceStatus& GetStatus() const{ return m_status; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItemEntry& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
/**
* <p>The status of the compliance item. An item is either COMPLIANT or
* NON_COMPLIANT.</p>
*/
inline ComplianceItemEntry& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetDetails() const{ return m_details; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline void SetDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& WithDetails(const Aws::Map<Aws::String, Aws::String>& value) { SetDetails(value); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& WithDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
/**
* <p>A "Key": "Value" tag combination for the compliance item.</p>
*/
inline ComplianceItemEntry& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
ComplianceSeverity m_severity;
bool m_severityHasBeenSet;
ComplianceStatus m_status;
bool m_statusHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_details;
bool m_detailsHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws