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

Information about the user who created or modified an experiment, trial, or * trial component.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the user's profile.

*/ inline const Aws::String& GetUserProfileArn() const{ return m_userProfileArn; } /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline bool UserProfileArnHasBeenSet() const { return m_userProfileArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline void SetUserProfileArn(const Aws::String& value) { m_userProfileArnHasBeenSet = true; m_userProfileArn = value; } /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline void SetUserProfileArn(Aws::String&& value) { m_userProfileArnHasBeenSet = true; m_userProfileArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline void SetUserProfileArn(const char* value) { m_userProfileArnHasBeenSet = true; m_userProfileArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline UserContext& WithUserProfileArn(const Aws::String& value) { SetUserProfileArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline UserContext& WithUserProfileArn(Aws::String&& value) { SetUserProfileArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the user's profile.

*/ inline UserContext& WithUserProfileArn(const char* value) { SetUserProfileArn(value); return *this;} /** *

The name of the user's profile.

*/ inline const Aws::String& GetUserProfileName() const{ return m_userProfileName; } /** *

The name of the user's profile.

*/ inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; } /** *

The name of the user's profile.

*/ inline void SetUserProfileName(const Aws::String& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = value; } /** *

The name of the user's profile.

*/ inline void SetUserProfileName(Aws::String&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::move(value); } /** *

The name of the user's profile.

*/ inline void SetUserProfileName(const char* value) { m_userProfileNameHasBeenSet = true; m_userProfileName.assign(value); } /** *

The name of the user's profile.

*/ inline UserContext& WithUserProfileName(const Aws::String& value) { SetUserProfileName(value); return *this;} /** *

The name of the user's profile.

*/ inline UserContext& WithUserProfileName(Aws::String&& value) { SetUserProfileName(std::move(value)); return *this;} /** *

The name of the user's profile.

*/ inline UserContext& WithUserProfileName(const char* value) { SetUserProfileName(value); return *this;} /** *

The domain associated with the user.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The domain associated with the user.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The domain associated with the user.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The domain associated with the user.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The domain associated with the user.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The domain associated with the user.

*/ inline UserContext& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The domain associated with the user.

*/ inline UserContext& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The domain associated with the user.

*/ inline UserContext& WithDomainId(const char* value) { SetDomainId(value); return *this;} private: Aws::String m_userProfileArn; bool m_userProfileArnHasBeenSet; Aws::String m_userProfileName; bool m_userProfileNameHasBeenSet; Aws::String m_domainId; bool m_domainIdHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws