271 lines
8.2 KiB
C++
271 lines
8.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/appconfig/AppConfig_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/appconfig/model/EnvironmentState.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/appconfig/model/Monitor.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace AppConfig
|
|
{
|
|
namespace Model
|
|
{
|
|
class AWS_APPCONFIG_API CreateEnvironmentResult
|
|
{
|
|
public:
|
|
CreateEnvironmentResult();
|
|
CreateEnvironmentResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
CreateEnvironmentResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The application ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline const Aws::String& GetId() const{ return m_id; }
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline void SetId(const Aws::String& value) { m_id = value; }
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline void SetId(const char* value) { m_id.assign(value); }
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The environment ID.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithId(const char* value) { SetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_description = value; }
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The description of the environment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The state of the environment. An environment can be in one of the following
|
|
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
|
|
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
|
|
*/
|
|
inline const EnvironmentState& GetState() const{ return m_state; }
|
|
|
|
/**
|
|
* <p>The state of the environment. An environment can be in one of the following
|
|
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
|
|
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
|
|
*/
|
|
inline void SetState(const EnvironmentState& value) { m_state = value; }
|
|
|
|
/**
|
|
* <p>The state of the environment. An environment can be in one of the following
|
|
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
|
|
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
|
|
*/
|
|
inline void SetState(EnvironmentState&& value) { m_state = std::move(value); }
|
|
|
|
/**
|
|
* <p>The state of the environment. An environment can be in one of the following
|
|
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
|
|
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;}
|
|
|
|
/**
|
|
* <p>The state of the environment. An environment can be in one of the following
|
|
* states: <code>READY_FOR_DEPLOYMENT</code>, <code>DEPLOYING</code>,
|
|
* <code>ROLLING_BACK</code>, or <code>ROLLED_BACK</code> </p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitors = value; }
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitors = std::move(value); }
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>Amazon CloudWatch alarms monitored during the deployment.</p>
|
|
*/
|
|
inline CreateEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_applicationId;
|
|
|
|
Aws::String m_id;
|
|
|
|
Aws::String m_name;
|
|
|
|
Aws::String m_description;
|
|
|
|
EnvironmentState m_state;
|
|
|
|
Aws::Vector<Monitor> m_monitors;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AppConfig
|
|
} // namespace Aws
|