162 lines
5.1 KiB
C++
162 lines
5.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace ServiceDiscovery
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The service can't be created because a service with the same name already
|
|
* exists.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ServiceAlreadyExists">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SERVICEDISCOVERY_API ServiceAlreadyExists
|
|
{
|
|
public:
|
|
ServiceAlreadyExists();
|
|
ServiceAlreadyExists(Aws::Utils::Json::JsonView jsonValue);
|
|
ServiceAlreadyExists& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
|
|
inline const Aws::String& GetMessage() const{ return m_message; }
|
|
|
|
|
|
inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
|
|
|
|
|
|
inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
|
|
|
|
|
|
inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
|
|
|
|
|
|
inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
|
|
|
|
|
|
inline ServiceAlreadyExists& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
|
|
|
|
|
|
inline ServiceAlreadyExists& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
|
|
|
|
|
|
inline ServiceAlreadyExists& WithMessage(const char* value) { SetMessage(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The <code>CreatorRequestId</code> that was used to create the service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline const Aws::String& GetServiceId() const{ return m_serviceId; }
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the existing service.</p>
|
|
*/
|
|
inline ServiceAlreadyExists& WithServiceId(const char* value) { SetServiceId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_message;
|
|
bool m_messageHasBeenSet;
|
|
|
|
Aws::String m_creatorRequestId;
|
|
bool m_creatorRequestIdHasBeenSet;
|
|
|
|
Aws::String m_serviceId;
|
|
bool m_serviceIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace ServiceDiscovery
|
|
} // namespace Aws
|