/**
* 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 Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaLive
{
namespace Model
{
/**
* An Input Security GroupSee Also:
AWS
* API Reference
*/
class InputSecurityGroup
{
public:
AWS_MEDIALIVE_API InputSecurityGroup();
AWS_MEDIALIVE_API InputSecurityGroup(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIALIVE_API InputSecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Unique ARN of Input Security Group
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* Unique ARN of Input Security Group
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* Unique ARN of Input Security Group
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* Unique ARN of Input Security Group
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* Unique ARN of Input Security Group
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* Unique ARN of Input Security Group
*/
inline InputSecurityGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* Unique ARN of Input Security Group
*/
inline InputSecurityGroup& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* Unique ARN of Input Security Group
*/
inline InputSecurityGroup& WithArn(const char* value) { SetArn(value); return *this;}
/**
* The Id of the Input Security Group
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The Id of the Input Security Group
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The Id of the Input Security Group
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The Id of the Input Security Group
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The Id of the Input Security Group
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The Id of the Input Security Group
*/
inline InputSecurityGroup& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The Id of the Input Security Group
*/
inline InputSecurityGroup& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The Id of the Input Security Group
*/
inline InputSecurityGroup& WithId(const char* value) { SetId(value); return *this;}
/**
* The list of inputs currently using this Input Security Group.
*/
inline const Aws::Vector& GetInputs() const{ return m_inputs; }
/**
* The list of inputs currently using this Input Security Group.
*/
inline bool InputsHasBeenSet() const { return m_inputsHasBeenSet; }
/**
* The list of inputs currently using this Input Security Group.
*/
inline void SetInputs(const Aws::Vector& value) { m_inputsHasBeenSet = true; m_inputs = value; }
/**
* The list of inputs currently using this Input Security Group.
*/
inline void SetInputs(Aws::Vector&& value) { m_inputsHasBeenSet = true; m_inputs = std::move(value); }
/**
* The list of inputs currently using this Input Security Group.
*/
inline InputSecurityGroup& WithInputs(const Aws::Vector& value) { SetInputs(value); return *this;}
/**
* The list of inputs currently using this Input Security Group.
*/
inline InputSecurityGroup& WithInputs(Aws::Vector&& value) { SetInputs(std::move(value)); return *this;}
/**
* The list of inputs currently using this Input Security Group.
*/
inline InputSecurityGroup& AddInputs(const Aws::String& value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
/**
* The list of inputs currently using this Input Security Group.
*/
inline InputSecurityGroup& AddInputs(Aws::String&& value) { m_inputsHasBeenSet = true; m_inputs.push_back(std::move(value)); return *this; }
/**
* The list of inputs currently using this Input Security Group.
*/
inline InputSecurityGroup& AddInputs(const char* value) { m_inputsHasBeenSet = true; m_inputs.push_back(value); return *this; }
/**
* The current state of the Input Security Group.
*/
inline const InputSecurityGroupState& GetState() const{ return m_state; }
/**
* The current state of the Input Security Group.
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* The current state of the Input Security Group.
*/
inline void SetState(const InputSecurityGroupState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* The current state of the Input Security Group.
*/
inline void SetState(InputSecurityGroupState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* The current state of the Input Security Group.
*/
inline InputSecurityGroup& WithState(const InputSecurityGroupState& value) { SetState(value); return *this;}
/**
* The current state of the Input Security Group.
*/
inline InputSecurityGroup& WithState(InputSecurityGroupState&& value) { SetState(std::move(value)); return *this;}
/**
* 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 InputSecurityGroup& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
/**
* A collection of key-value pairs.
*/
inline InputSecurityGroup& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline InputSecurityGroup& 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 InputSecurityGroup& 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 InputSecurityGroup& 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 InputSecurityGroup& 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 InputSecurityGroup& 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 InputSecurityGroup& 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 InputSecurityGroup& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* Whitelist rules and their sync status
*/
inline const Aws::Vector& GetWhitelistRules() const{ return m_whitelistRules; }
/**
* Whitelist rules and their sync status
*/
inline bool WhitelistRulesHasBeenSet() const { return m_whitelistRulesHasBeenSet; }
/**
* Whitelist rules and their sync status
*/
inline void SetWhitelistRules(const Aws::Vector& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = value; }
/**
* Whitelist rules and their sync status
*/
inline void SetWhitelistRules(Aws::Vector&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules = std::move(value); }
/**
* Whitelist rules and their sync status
*/
inline InputSecurityGroup& WithWhitelistRules(const Aws::Vector& value) { SetWhitelistRules(value); return *this;}
/**
* Whitelist rules and their sync status
*/
inline InputSecurityGroup& WithWhitelistRules(Aws::Vector&& value) { SetWhitelistRules(std::move(value)); return *this;}
/**
* Whitelist rules and their sync status
*/
inline InputSecurityGroup& AddWhitelistRules(const InputWhitelistRule& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(value); return *this; }
/**
* Whitelist rules and their sync status
*/
inline InputSecurityGroup& AddWhitelistRules(InputWhitelistRule&& value) { m_whitelistRulesHasBeenSet = true; m_whitelistRules.push_back(std::move(value)); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet = false;
Aws::String m_id;
bool m_idHasBeenSet = false;
Aws::Vector m_inputs;
bool m_inputsHasBeenSet = false;
InputSecurityGroupState m_state;
bool m_stateHasBeenSet = false;
Aws::Map m_tags;
bool m_tagsHasBeenSet = false;
Aws::Vector m_whitelistRules;
bool m_whitelistRulesHasBeenSet = false;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws