Files
2026-02-28 12:32:28 -05:00

64 lines
1.8 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 <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Information about the user or resource that created an OpsItem
* event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/OpsItemIdentity">AWS
* API Reference</a></p>
*/
class OpsItemIdentity
{
public:
AWS_SSM_API OpsItemIdentity();
AWS_SSM_API OpsItemIdentity(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API OpsItemIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* <p>The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem
* event.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
inline OpsItemIdentity& WithArn(const Aws::String& value) { SetArn(value); return *this;}
inline OpsItemIdentity& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
inline OpsItemIdentity& WithArn(const char* value) { SetArn(value); return *this;}
///@}
private:
Aws::String m_arn;
bool m_arnHasBeenSet = false;
};
} // namespace Model
} // namespace SSM
} // namespace Aws