/**
* 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; }
inline bool ExecutionTimeHasBeenSet() const { return m_executionTimeHasBeenSet; }
inline void SetExecutionTime(const Aws::Utils::DateTime& value) { m_executionTimeHasBeenSet = true; m_executionTime = value; }
inline void SetExecutionTime(Aws::Utils::DateTime&& value) { m_executionTimeHasBeenSet = true; m_executionTime = std::move(value); }
inline ComplianceExecutionSummary& WithExecutionTime(const Aws::Utils::DateTime& value) { SetExecutionTime(value); return *this;}
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; }
inline bool ExecutionIdHasBeenSet() const { return m_executionIdHasBeenSet; }
inline void SetExecutionId(const Aws::String& value) { m_executionIdHasBeenSet = true; m_executionId = value; }
inline void SetExecutionId(Aws::String&& value) { m_executionIdHasBeenSet = true; m_executionId = std::move(value); }
inline void SetExecutionId(const char* value) { m_executionIdHasBeenSet = true; m_executionId.assign(value); }
inline ComplianceExecutionSummary& WithExecutionId(const Aws::String& value) { SetExecutionId(value); return *this;}
inline ComplianceExecutionSummary& WithExecutionId(Aws::String&& value) { SetExecutionId(std::move(value)); return *this;}
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; }
inline bool ExecutionTypeHasBeenSet() const { return m_executionTypeHasBeenSet; }
inline void SetExecutionType(const Aws::String& value) { m_executionTypeHasBeenSet = true; m_executionType = value; }
inline void SetExecutionType(Aws::String&& value) { m_executionTypeHasBeenSet = true; m_executionType = std::move(value); }
inline void SetExecutionType(const char* value) { m_executionTypeHasBeenSet = true; m_executionType.assign(value); }
inline ComplianceExecutionSummary& WithExecutionType(const Aws::String& value) { SetExecutionType(value); return *this;}
inline ComplianceExecutionSummary& WithExecutionType(Aws::String&& value) { SetExecutionType(std::move(value)); return *this;}
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