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

Contains information about the access keys.

See Also:

AWS * API Reference

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

The access key ID of the user.

*/ inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; } /** *

The access key ID of the user.

*/ inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; } /** *

The access key ID of the user.

*/ inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; } /** *

The access key ID of the user.

*/ inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); } /** *

The access key ID of the user.

*/ inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); } /** *

The access key ID of the user.

*/ inline AccessKeyDetails& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;} /** *

The access key ID of the user.

*/ inline AccessKeyDetails& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;} /** *

The access key ID of the user.

*/ inline AccessKeyDetails& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;} /** *

The principal ID of the user.

*/ inline const Aws::String& GetPrincipalId() const{ return m_principalId; } /** *

The principal ID of the user.

*/ inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; } /** *

The principal ID of the user.

*/ inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; } /** *

The principal ID of the user.

*/ inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); } /** *

The principal ID of the user.

*/ inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); } /** *

The principal ID of the user.

*/ inline AccessKeyDetails& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;} /** *

The principal ID of the user.

*/ inline AccessKeyDetails& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;} /** *

The principal ID of the user.

*/ inline AccessKeyDetails& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;} /** *

The name of the user.

*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *

The name of the user.

*/ inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; } /** *

The name of the user.

*/ inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; } /** *

The name of the user.

*/ inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); } /** *

The name of the user.

*/ inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); } /** *

The name of the user.

*/ inline AccessKeyDetails& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *

The name of the user.

*/ inline AccessKeyDetails& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *

The name of the user.

*/ inline AccessKeyDetails& WithUserName(const char* value) { SetUserName(value); return *this;} /** *

The type of the user.

*/ inline const Aws::String& GetUserType() const{ return m_userType; } /** *

The type of the user.

*/ inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; } /** *

The type of the user.

*/ inline void SetUserType(const Aws::String& value) { m_userTypeHasBeenSet = true; m_userType = value; } /** *

The type of the user.

*/ inline void SetUserType(Aws::String&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); } /** *

The type of the user.

*/ inline void SetUserType(const char* value) { m_userTypeHasBeenSet = true; m_userType.assign(value); } /** *

The type of the user.

*/ inline AccessKeyDetails& WithUserType(const Aws::String& value) { SetUserType(value); return *this;} /** *

The type of the user.

*/ inline AccessKeyDetails& WithUserType(Aws::String&& value) { SetUserType(std::move(value)); return *this;} /** *

The type of the user.

*/ inline AccessKeyDetails& WithUserType(const char* value) { SetUserType(value); return *this;} private: Aws::String m_accessKeyId; bool m_accessKeyIdHasBeenSet = false; Aws::String m_principalId; bool m_principalIdHasBeenSet = false; Aws::String m_userName; bool m_userNameHasBeenSet = false; Aws::String m_userType; bool m_userTypeHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws