/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { class DescribeAppResult { public: AWS_SAGEMAKER_API DescribeAppResult(); AWS_SAGEMAKER_API DescribeAppResult(const Aws::AmazonWebServiceResult& result); AWS_SAGEMAKER_API DescribeAppResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the app.

*/ inline const Aws::String& GetAppArn() const{ return m_appArn; } /** *

The Amazon Resource Name (ARN) of the app.

*/ inline void SetAppArn(const Aws::String& value) { m_appArn = value; } /** *

The Amazon Resource Name (ARN) of the app.

*/ inline void SetAppArn(Aws::String&& value) { m_appArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the app.

*/ inline void SetAppArn(const char* value) { m_appArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the app.

*/ inline DescribeAppResult& WithAppArn(const Aws::String& value) { SetAppArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the app.

*/ inline DescribeAppResult& WithAppArn(Aws::String&& value) { SetAppArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the app.

*/ inline DescribeAppResult& WithAppArn(const char* value) { SetAppArn(value); return *this;} /** *

The type of app.

*/ inline const AppType& GetAppType() const{ return m_appType; } /** *

The type of app.

*/ inline void SetAppType(const AppType& value) { m_appType = value; } /** *

The type of app.

*/ inline void SetAppType(AppType&& value) { m_appType = std::move(value); } /** *

The type of app.

*/ inline DescribeAppResult& WithAppType(const AppType& value) { SetAppType(value); return *this;} /** *

The type of app.

*/ inline DescribeAppResult& WithAppType(AppType&& value) { SetAppType(std::move(value)); return *this;} /** *

The name of the app.

*/ inline const Aws::String& GetAppName() const{ return m_appName; } /** *

The name of the app.

*/ inline void SetAppName(const Aws::String& value) { m_appName = value; } /** *

The name of the app.

*/ inline void SetAppName(Aws::String&& value) { m_appName = std::move(value); } /** *

The name of the app.

*/ inline void SetAppName(const char* value) { m_appName.assign(value); } /** *

The name of the app.

*/ inline DescribeAppResult& WithAppName(const Aws::String& value) { SetAppName(value); return *this;} /** *

The name of the app.

*/ inline DescribeAppResult& WithAppName(Aws::String&& value) { SetAppName(std::move(value)); return *this;} /** *

The name of the app.

*/ inline DescribeAppResult& WithAppName(const char* value) { SetAppName(value); return *this;} /** *

The domain ID.

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

The domain ID.

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

The domain ID.

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

The domain ID.

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

The domain ID.

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

The domain ID.

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

The domain ID.

*/ inline DescribeAppResult& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

The user profile name.

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

The user profile name.

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

The user profile name.

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

The user profile name.

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

The user profile name.

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

The user profile name.

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

The user profile name.

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

The status.

*/ inline const AppStatus& GetStatus() const{ return m_status; } /** *

The status.

*/ inline void SetStatus(const AppStatus& value) { m_status = value; } /** *

The status.

*/ inline void SetStatus(AppStatus&& value) { m_status = std::move(value); } /** *

The status.

*/ inline DescribeAppResult& WithStatus(const AppStatus& value) { SetStatus(value); return *this;} /** *

The status.

*/ inline DescribeAppResult& WithStatus(AppStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The timestamp of the last health check.

*/ inline const Aws::Utils::DateTime& GetLastHealthCheckTimestamp() const{ return m_lastHealthCheckTimestamp; } /** *

The timestamp of the last health check.

*/ inline void SetLastHealthCheckTimestamp(const Aws::Utils::DateTime& value) { m_lastHealthCheckTimestamp = value; } /** *

The timestamp of the last health check.

*/ inline void SetLastHealthCheckTimestamp(Aws::Utils::DateTime&& value) { m_lastHealthCheckTimestamp = std::move(value); } /** *

The timestamp of the last health check.

*/ inline DescribeAppResult& WithLastHealthCheckTimestamp(const Aws::Utils::DateTime& value) { SetLastHealthCheckTimestamp(value); return *this;} /** *

The timestamp of the last health check.

*/ inline DescribeAppResult& WithLastHealthCheckTimestamp(Aws::Utils::DateTime&& value) { SetLastHealthCheckTimestamp(std::move(value)); return *this;} /** *

The timestamp of the last user's activity. * LastUserActivityTimestamp is also updated when SageMaker performs * health checks without user activity. As a result, this value is set to the same * value as LastHealthCheckTimestamp.

*/ inline const Aws::Utils::DateTime& GetLastUserActivityTimestamp() const{ return m_lastUserActivityTimestamp; } /** *

The timestamp of the last user's activity. * LastUserActivityTimestamp is also updated when SageMaker performs * health checks without user activity. As a result, this value is set to the same * value as LastHealthCheckTimestamp.

*/ inline void SetLastUserActivityTimestamp(const Aws::Utils::DateTime& value) { m_lastUserActivityTimestamp = value; } /** *

The timestamp of the last user's activity. * LastUserActivityTimestamp is also updated when SageMaker performs * health checks without user activity. As a result, this value is set to the same * value as LastHealthCheckTimestamp.

*/ inline void SetLastUserActivityTimestamp(Aws::Utils::DateTime&& value) { m_lastUserActivityTimestamp = std::move(value); } /** *

The timestamp of the last user's activity. * LastUserActivityTimestamp is also updated when SageMaker performs * health checks without user activity. As a result, this value is set to the same * value as LastHealthCheckTimestamp.

*/ inline DescribeAppResult& WithLastUserActivityTimestamp(const Aws::Utils::DateTime& value) { SetLastUserActivityTimestamp(value); return *this;} /** *

The timestamp of the last user's activity. * LastUserActivityTimestamp is also updated when SageMaker performs * health checks without user activity. As a result, this value is set to the same * value as LastHealthCheckTimestamp.

*/ inline DescribeAppResult& WithLastUserActivityTimestamp(Aws::Utils::DateTime&& value) { SetLastUserActivityTimestamp(std::move(value)); return *this;} /** *

The creation time.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The creation time.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The creation time.

*/ inline DescribeAppResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time.

*/ inline DescribeAppResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

The failure reason.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The failure reason.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReason = value; } /** *

The failure reason.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReason = std::move(value); } /** *

The failure reason.

*/ inline void SetFailureReason(const char* value) { m_failureReason.assign(value); } /** *

The failure reason.

*/ inline DescribeAppResult& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The failure reason.

*/ inline DescribeAppResult& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The failure reason.

*/ inline DescribeAppResult& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} /** *

The instance type and the Amazon Resource Name (ARN) of the SageMaker image * created on the instance.

*/ inline const ResourceSpec& GetResourceSpec() const{ return m_resourceSpec; } /** *

The instance type and the Amazon Resource Name (ARN) of the SageMaker image * created on the instance.

*/ inline void SetResourceSpec(const ResourceSpec& value) { m_resourceSpec = value; } /** *

The instance type and the Amazon Resource Name (ARN) of the SageMaker image * created on the instance.

*/ inline void SetResourceSpec(ResourceSpec&& value) { m_resourceSpec = std::move(value); } /** *

The instance type and the Amazon Resource Name (ARN) of the SageMaker image * created on the instance.

*/ inline DescribeAppResult& WithResourceSpec(const ResourceSpec& value) { SetResourceSpec(value); return *this;} /** *

The instance type and the Amazon Resource Name (ARN) of the SageMaker image * created on the instance.

*/ inline DescribeAppResult& WithResourceSpec(ResourceSpec&& value) { SetResourceSpec(std::move(value)); return *this;} /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceName = value; } /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceName = std::move(value); } /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline void SetSpaceName(const char* value) { m_spaceName.assign(value); } /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline DescribeAppResult& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline DescribeAppResult& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space. If this value is not set, then * UserProfileName must be set.

*/ inline DescribeAppResult& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline DescribeAppResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeAppResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeAppResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_appArn; AppType m_appType; Aws::String m_appName; Aws::String m_domainId; Aws::String m_userProfileName; AppStatus m_status; Aws::Utils::DateTime m_lastHealthCheckTimestamp; Aws::Utils::DateTime m_lastUserActivityTimestamp; Aws::Utils::DateTime m_creationTime; Aws::String m_failureReason; ResourceSpec m_resourceSpec; Aws::String m_spaceName; Aws::String m_requestId; }; } // namespace Model } // namespace SageMaker } // namespace Aws