/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

A summary of the call execution that includes an execution ID, the type of * execution (for example, Command), and the date/time of the * execution using a datetime object that is saved in the following format: * yyyy-MM-dd'T'HH:mm:ss'Z'.

See Also:

AWS * API Reference

*/ class ComplianceExecutionSummary { public: AWS_SSM_API ComplianceExecutionSummary(); AWS_SSM_API ComplianceExecutionSummary(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API ComplianceExecutionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline const Aws::Utils::DateTime& GetExecutionTime() const{ return m_executionTime; } /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; } /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline void SetExecutionTime(const Aws::Utils::DateTime& value) { m_executionTimeHasBeenSet = true; m_executionTime = value; } /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline void SetExecutionTime(Aws::Utils::DateTime&& value) { m_executionTimeHasBeenSet = true; m_executionTime = std::move(value); } /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline ComplianceExecutionSummary& WithExecutionTime(const Aws::Utils::DateTime& value) { SetExecutionTime(value); return *this;} /** *

The time the execution ran as a datetime object that is saved in the * following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

*/ inline ComplianceExecutionSummary& WithExecutionTime(Aws::Utils::DateTime&& value) { SetExecutionTime(std::move(value)); return *this;} /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline const Aws::String& GetExecutionId() const{ return m_executionId; } /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; } /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; } /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); } /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); } /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline ComplianceExecutionSummary& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;} /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline ComplianceExecutionSummary& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;} /** *

An ID created by the system when PutComplianceItems was called. * For example, CommandID is a valid execution ID. You can use this ID * in subsequent calls.

*/ inline ComplianceExecutionSummary& WithExecutionId(const char* value) { SetExecutionId(value); return *this;} /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline const Aws::String& GetExecutionType() const{ return m_executionType; } /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; } /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline void SetExecutionType(const Aws::String& value) { m_executionTypeHasBeenSet = true; m_executionType = value; } /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline void SetExecutionType(Aws::String&& value) { m_executionTypeHasBeenSet = true; m_executionType = std::move(value); } /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline void SetExecutionType(const char* value) { m_executionTypeHasBeenSet = true; m_executionType.assign(value); } /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline ComplianceExecutionSummary& WithExecutionType(const Aws::String& value) { SetExecutionType(value); return *this;} /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline ComplianceExecutionSummary& WithExecutionType(Aws::String&& value) { SetExecutionType(std::move(value)); return *this;} /** *

The type of execution. For example, Command is a valid execution * type.

*/ inline ComplianceExecutionSummary& WithExecutionType(const char* value) { SetExecutionType(value); return *this;} private: Aws::Utils::DateTime m_executionTime; bool m_executionTimeHasBeenSet = false; Aws::String m_executionId; bool m_executionIdHasBeenSet = false; Aws::String m_executionType; bool m_executionTypeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws