/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
#include
#include
namespace Aws
{
namespace MediaLive
{
namespace Model
{
/**
* The IPv4 CIDRs to whitelist for this Input Security GroupSee Also:
* AWS
* API Reference
*/
class CreateInputSecurityGroupRequest : public MediaLiveRequest
{
public:
AWS_MEDIALIVE_API CreateInputSecurityGroupRequest();
// 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 "CreateInputSecurityGroup"; }
AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
/**
* A collection of key-value pairs.
*/
inline const Aws::Map& GetTags() const{ return m_tags; }
/**
* A collection of key-value pairs.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* A collection of key-value pairs.
*/
inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* A collection of key-value pairs.
*/
inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline CreateInputSecurityGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline const Aws::Vector& GetWhitelistRules() const{ return m_whitelistRules; }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline void SetWhitelistRules(const Aws::Vector& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline void SetWhitelistRules(Aws::Vector&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline CreateInputSecurityGroupRequest& WithWhitelistRules(const Aws::Vector& value) { SetWhitelistRules(value); return *this;}
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline CreateInputSecurityGroupRequest& WithWhitelistRules(Aws::Vector&& value) { SetWhitelistRules(std::move(value)); return *this;}
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline CreateInputSecurityGroupRequest& AddWhitelistRules(const InputWhitelistRuleCidr& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
/**
* List of IPv4 CIDR addresses to whitelist
*/
inline CreateInputSecurityGroupRequest& AddWhitelistRules(InputWhitelistRuleCidr&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
private:
Aws::Map m_tags;
bool m_tagsHasBeenSet = false;
Aws::Vector m_whitelistRules;
bool m_whitelistRulesHasBeenSet = false;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws