/** * 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 Detective { namespace Model { /** *

Information about the Detective administrator account for an * organization.

See Also:

AWS * API Reference

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

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline Administrator& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline Administrator& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account identifier of the Detective administrator * account for the organization.

*/ inline Administrator& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The ARN of the organization behavior graph.

*/ inline const Aws::String& GetGraphArn() const{ return m_graphArn; } /** *

The ARN of the organization behavior graph.

*/ inline bool GraphArnHasBeenSet() const { return m_graphArnHasBeenSet; } /** *

The ARN of the organization behavior graph.

*/ inline void SetGraphArn(const Aws::String& value) { m_graphArnHasBeenSet = true; m_graphArn = value; } /** *

The ARN of the organization behavior graph.

*/ inline void SetGraphArn(Aws::String&& value) { m_graphArnHasBeenSet = true; m_graphArn = std::move(value); } /** *

The ARN of the organization behavior graph.

*/ inline void SetGraphArn(const char* value) { m_graphArnHasBeenSet = true; m_graphArn.assign(value); } /** *

The ARN of the organization behavior graph.

*/ inline Administrator& WithGraphArn(const Aws::String& value) { SetGraphArn(value); return *this;} /** *

The ARN of the organization behavior graph.

*/ inline Administrator& WithGraphArn(Aws::String&& value) { SetGraphArn(std::move(value)); return *this;} /** *

The ARN of the organization behavior graph.

*/ inline Administrator& WithGraphArn(const char* value) { SetGraphArn(value); return *this;} /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline const Aws::Utils::DateTime& GetDelegationTime() const{ return m_delegationTime; } /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline bool DelegationTimeHasBeenSet() const { return m_delegationTimeHasBeenSet; } /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline void SetDelegationTime(const Aws::Utils::DateTime& value) { m_delegationTimeHasBeenSet = true; m_delegationTime = value; } /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline void SetDelegationTime(Aws::Utils::DateTime&& value) { m_delegationTimeHasBeenSet = true; m_delegationTime = std::move(value); } /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline Administrator& WithDelegationTime(const Aws::Utils::DateTime& value) { SetDelegationTime(value); return *this;} /** *

The date and time when the Detective administrator account was enabled. The * value is an ISO8601 formatted string. For example, * 2021-08-18T16:35:56.284Z.

*/ inline Administrator& WithDelegationTime(Aws::Utils::DateTime&& value) { SetDelegationTime(std::move(value)); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_graphArn; bool m_graphArnHasBeenSet = false; Aws::Utils::DateTime m_delegationTime; bool m_delegationTimeHasBeenSet = false; }; } // namespace Model } // namespace Detective } // namespace Aws