This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-personalize/include/aws/personalize/model/SolutionVersionSummary.h

276 lines
10 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/personalize/Personalize_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Personalize
{
namespace Model
{
/**
* <p>Provides a summary of the properties of a solution version. For a complete
* listing, call the <a>DescribeSolutionVersion</a> API.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/SolutionVersionSummary">AWS
* API Reference</a></p>
*/
class AWS_PERSONALIZE_API SolutionVersionSummary
{
public:
SolutionVersionSummary();
SolutionVersionSummary(Aws::Utils::Json::JsonView jsonValue);
SolutionVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline const Aws::String& GetSolutionVersionArn() const{ return m_solutionVersionArn; }
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline bool SolutionVersionArnHasBeenSet() const { return m_solutionVersionArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline void SetSolutionVersionArn(const Aws::String& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline void SetSolutionVersionArn(Aws::String&& value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline void SetSolutionVersionArn(const char* value) { m_solutionVersionArnHasBeenSet = true; m_solutionVersionArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline SolutionVersionSummary& WithSolutionVersionArn(const Aws::String& value) { SetSolutionVersionArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline SolutionVersionSummary& WithSolutionVersionArn(Aws::String&& value) { SetSolutionVersionArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the solution version.</p>
*/
inline SolutionVersionSummary& WithSolutionVersionArn(const char* value) { SetSolutionVersionArn(value); return *this;}
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline const Aws::String& GetStatus() const{ return m_status; }
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline SolutionVersionSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline SolutionVersionSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>The status of the solution version.</p> <p>A solution version can be in one
* of the following states:</p> <ul> <li> <p>CREATE PENDING &gt; CREATE IN_PROGRESS
* &gt; ACTIVE -or- CREATE FAILED</p> </li> </ul>
*/
inline SolutionVersionSummary& WithStatus(const char* value) { SetStatus(value); return *this;}
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; }
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; }
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; }
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); }
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline SolutionVersionSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;}
/**
* <p>The date and time (in Unix time) that this version of a solution was
* created.</p>
*/
inline SolutionVersionSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;}
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; }
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; }
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; }
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); }
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline SolutionVersionSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;}
/**
* <p>The date and time (in Unix time) that the solution version was last
* updated.</p>
*/
inline SolutionVersionSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;}
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline SolutionVersionSummary& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;}
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline SolutionVersionSummary& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
/**
* <p>If a solution version fails, the reason behind the failure.</p>
*/
inline SolutionVersionSummary& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
private:
Aws::String m_solutionVersionArn;
bool m_solutionVersionArnHasBeenSet;
Aws::String m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_creationDateTime;
bool m_creationDateTimeHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedDateTime;
bool m_lastUpdatedDateTimeHasBeenSet;
Aws::String m_failureReason;
bool m_failureReasonHasBeenSet;
};
} // namespace Model
} // namespace Personalize
} // namespace Aws