feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,592 @@
/**
* 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/core/utils/DateTime.h>
#include <aws/ssm/model/OpsItemStatus.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/ssm/model/OpsItemDataValue.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>A count of OpsItems.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/OpsItemSummary">AWS
* API Reference</a></p>
*/
class AWS_SSM_API OpsItemSummary
{
public:
OpsItemSummary();
OpsItemSummary(Aws::Utils::Json::JsonView jsonValue);
OpsItemSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline OpsItemSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
/**
* <p>The date and time the OpsItem was created.</p>
*/
inline OpsItemSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline const Aws::String& GetLastModifiedBy() const{ return m_lastModifiedBy; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetLastModifiedBy(const Aws::String& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetLastModifiedBy(Aws::String&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline void SetLastModifiedBy(const char* value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithLastModifiedBy(const Aws::String& value) { SetLastModifiedBy(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithLastModifiedBy(Aws::String&& value) { SetLastModifiedBy(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the
* OpsItem.</p>
*/
inline OpsItemSummary& WithLastModifiedBy(const char* value) { SetLastModifiedBy(value); return *this;}
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline OpsItemSummary& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
/**
* <p>The date and time the OpsItem was last updated.</p>
*/
inline OpsItemSummary& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline int GetPriority() const{ return m_priority; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
/**
* <p>The importance of this OpsItem in relation to other OpsItems in the
* system.</p>
*/
inline OpsItemSummary& WithPriority(int value) { SetPriority(value); return *this;}
/**
* <p>The impacted AWS resource.</p>
*/
inline const Aws::String& GetSource() const{ return m_source; }
/**
* <p>The impacted AWS resource.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The impacted AWS resource.</p>
*/
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The impacted AWS resource.</p>
*/
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The impacted AWS resource.</p>
*/
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
/**
* <p>The impacted AWS resource.</p>
*/
inline OpsItemSummary& WithSource(const Aws::String& value) { SetSource(value); return *this;}
/**
* <p>The impacted AWS resource.</p>
*/
inline OpsItemSummary& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The impacted AWS resource.</p>
*/
inline OpsItemSummary& WithSource(const char* value) { SetSource(value); return *this;}
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline const OpsItemStatus& GetStatus() const{ return m_status; }
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline void SetStatus(const OpsItemStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline void SetStatus(OpsItemStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline OpsItemSummary& WithStatus(const OpsItemStatus& value) { SetStatus(value); return *this;}
/**
* <p>The OpsItem status. Status can be <code>Open</code>, <code>In
* Progress</code>, or <code>Resolved</code>.</p>
*/
inline OpsItemSummary& WithStatus(OpsItemStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The ID of the OpsItem.</p>
*/
inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; }
/**
* <p>The ID of the OpsItem.</p>
*/
inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); }
/**
* <p>The ID of the OpsItem.</p>
*/
inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); }
/**
* <p>The ID of the OpsItem.</p>
*/
inline OpsItemSummary& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;}
/**
* <p>The ID of the OpsItem.</p>
*/
inline OpsItemSummary& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;}
/**
* <p>The ID of the OpsItem.</p>
*/
inline OpsItemSummary& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline const Aws::String& GetTitle() const{ return m_title; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline OpsItemSummary& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline OpsItemSummary& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
/**
* <p>A short heading that describes the nature of the OpsItem and the impacted
* resource.</p>
*/
inline OpsItemSummary& WithTitle(const char* value) { SetTitle(value); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline const Aws::Map<Aws::String, OpsItemDataValue>& GetOperationalData() const{ return m_operationalData; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline bool OperationalDataHasBeenSet() const { return m_operationalDataHasBeenSet; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline void SetOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { m_operationalDataHasBeenSet = true; m_operationalData = value; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline void SetOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { m_operationalDataHasBeenSet = true; m_operationalData = std::move(value); }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& WithOperationalData(const Aws::Map<Aws::String, OpsItemDataValue>& value) { SetOperationalData(value); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& WithOperationalData(Aws::Map<Aws::String, OpsItemDataValue>&& value) { SetOperationalData(std::move(value)); return *this;}
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(const Aws::String& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(Aws::String&& key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), value); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(const Aws::String& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(Aws::String&& key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(const char* key, OpsItemDataValue&& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, std::move(value)); return *this; }
/**
* <p>Operational data is custom data that provides useful reference details about
* the OpsItem. </p>
*/
inline OpsItemSummary& AddOperationalData(const char* key, const OpsItemDataValue& value) { m_operationalDataHasBeenSet = true; m_operationalData.emplace(key, value); return *this; }
/**
* <p>A list of OpsItems by category.</p>
*/
inline const Aws::String& GetCategory() const{ return m_category; }
/**
* <p>A list of OpsItems by category.</p>
*/
inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; }
/**
* <p>A list of OpsItems by category.</p>
*/
inline void SetCategory(const Aws::String& value) { m_categoryHasBeenSet = true; m_category = value; }
/**
* <p>A list of OpsItems by category.</p>
*/
inline void SetCategory(Aws::String&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); }
/**
* <p>A list of OpsItems by category.</p>
*/
inline void SetCategory(const char* value) { m_categoryHasBeenSet = true; m_category.assign(value); }
/**
* <p>A list of OpsItems by category.</p>
*/
inline OpsItemSummary& WithCategory(const Aws::String& value) { SetCategory(value); return *this;}
/**
* <p>A list of OpsItems by category.</p>
*/
inline OpsItemSummary& WithCategory(Aws::String&& value) { SetCategory(std::move(value)); return *this;}
/**
* <p>A list of OpsItems by category.</p>
*/
inline OpsItemSummary& WithCategory(const char* value) { SetCategory(value); return *this;}
/**
* <p>A list of OpsItems by severity.</p>
*/
inline const Aws::String& GetSeverity() const{ return m_severity; }
/**
* <p>A list of OpsItems by severity.</p>
*/
inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
/**
* <p>A list of OpsItems by severity.</p>
*/
inline void SetSeverity(const Aws::String& value) { m_severityHasBeenSet = true; m_severity = value; }
/**
* <p>A list of OpsItems by severity.</p>
*/
inline void SetSeverity(Aws::String&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
/**
* <p>A list of OpsItems by severity.</p>
*/
inline void SetSeverity(const char* value) { m_severityHasBeenSet = true; m_severity.assign(value); }
/**
* <p>A list of OpsItems by severity.</p>
*/
inline OpsItemSummary& WithSeverity(const Aws::String& value) { SetSeverity(value); return *this;}
/**
* <p>A list of OpsItems by severity.</p>
*/
inline OpsItemSummary& WithSeverity(Aws::String&& value) { SetSeverity(std::move(value)); return *this;}
/**
* <p>A list of OpsItems by severity.</p>
*/
inline OpsItemSummary& WithSeverity(const char* value) { SetSeverity(value); return *this;}
private:
Aws::String m_createdBy;
bool m_createdByHasBeenSet;
Aws::Utils::DateTime m_createdTime;
bool m_createdTimeHasBeenSet;
Aws::String m_lastModifiedBy;
bool m_lastModifiedByHasBeenSet;
Aws::Utils::DateTime m_lastModifiedTime;
bool m_lastModifiedTimeHasBeenSet;
int m_priority;
bool m_priorityHasBeenSet;
Aws::String m_source;
bool m_sourceHasBeenSet;
OpsItemStatus m_status;
bool m_statusHasBeenSet;
Aws::String m_opsItemId;
bool m_opsItemIdHasBeenSet;
Aws::String m_title;
bool m_titleHasBeenSet;
Aws::Map<Aws::String, OpsItemDataValue> m_operationalData;
bool m_operationalDataHasBeenSet;
Aws::String m_category;
bool m_categoryHasBeenSet;
Aws::String m_severity;
bool m_severityHasBeenSet;
};
} // namespace Model
} // namespace SSM
} // namespace Aws