184 lines
5.9 KiB
C++
184 lines
5.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/eventbridge/EventBridge_EXPORTS.h>
|
|
#include <aws/eventbridge/EventBridgeRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/eventbridge/model/Target.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace EventBridge
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_EVENTBRIDGE_API PutTargetsRequest : public EventBridgeRequest
|
|
{
|
|
public:
|
|
PutTargetsRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "PutTargets"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline const Aws::String& GetRule() const{ return m_rule; }
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline bool RuleHasBeenSet() const { return m_ruleHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline void SetRule(const Aws::String& value) { m_ruleHasBeenSet = true; m_rule = value; }
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline void SetRule(Aws::String&& value) { m_ruleHasBeenSet = true; m_rule = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline void SetRule(const char* value) { m_ruleHasBeenSet = true; m_rule.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithRule(const Aws::String& value) { SetRule(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithRule(Aws::String&& value) { SetRule(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithRule(const char* value) { SetRule(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline const Aws::String& GetEventBusName() const{ return m_eventBusName; }
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline bool EventBusNameHasBeenSet() const { return m_eventBusNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline void SetEventBusName(const Aws::String& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = value; }
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline void SetEventBusName(Aws::String&& value) { m_eventBusNameHasBeenSet = true; m_eventBusName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline void SetEventBusName(const char* value) { m_eventBusNameHasBeenSet = true; m_eventBusName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithEventBusName(const Aws::String& value) { SetEventBusName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithEventBusName(Aws::String&& value) { SetEventBusName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the event bus associated with the rule. If you omit this, the
|
|
* default event bus is used.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithEventBusName(const char* value) { SetEventBusName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The targets to update or add to the rule.</p>
|
|
*/
|
|
inline PutTargetsRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_rule;
|
|
bool m_ruleHasBeenSet;
|
|
|
|
Aws::String m_eventBusName;
|
|
bool m_eventBusNameHasBeenSet;
|
|
|
|
Aws::Vector<Target> m_targets;
|
|
bool m_targetsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace EventBridge
|
|
} // namespace Aws
|