194 lines
6.5 KiB
C++
194 lines
6.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/events/CloudWatchEvents_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 CloudWatchEvents
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents a target that failed to be added to a rule.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutTargetsResultEntry">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CLOUDWATCHEVENTS_API PutTargetsResultEntry
|
|
{
|
|
public:
|
|
PutTargetsResultEntry();
|
|
PutTargetsResultEntry(Aws::Utils::Json::JsonView jsonValue);
|
|
PutTargetsResultEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline const Aws::String& GetTargetId() const{ return m_targetId; }
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ID of the target.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithTargetId(const char* value) { SetTargetId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The error code that indicates why the target addition failed. If the value is
|
|
* <code>ConcurrentModificationException</code>, too many requests were made at the
|
|
* same time.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The error message that explains why the target addition failed.</p>
|
|
*/
|
|
inline PutTargetsResultEntry& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_targetId;
|
|
bool m_targetIdHasBeenSet;
|
|
|
|
Aws::String m_errorCode;
|
|
bool m_errorCodeHasBeenSet;
|
|
|
|
Aws::String m_errorMessage;
|
|
bool m_errorMessageHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CloudWatchEvents
|
|
} // namespace Aws
|