/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input of an AuthorizeCacheSecurityGroupIngress
* operation.See Also:
AWS
* API Reference
The cache security group that allows network ingress.
*/ inline const Aws::String& GetCacheSecurityGroupName() const{ return m_cacheSecurityGroupName; } /** *The cache security group that allows network ingress.
*/ inline bool CacheSecurityGroupNameHasBeenSet() const { return m_cacheSecurityGroupNameHasBeenSet; } /** *The cache security group that allows network ingress.
*/ inline void SetCacheSecurityGroupName(const Aws::String& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = value; } /** *The cache security group that allows network ingress.
*/ inline void SetCacheSecurityGroupName(Aws::String&& value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName = std::move(value); } /** *The cache security group that allows network ingress.
*/ inline void SetCacheSecurityGroupName(const char* value) { m_cacheSecurityGroupNameHasBeenSet = true; m_cacheSecurityGroupName.assign(value); } /** *The cache security group that allows network ingress.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const Aws::String& value) { SetCacheSecurityGroupName(value); return *this;} /** *The cache security group that allows network ingress.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(Aws::String&& value) { SetCacheSecurityGroupName(std::move(value)); return *this;} /** *The cache security group that allows network ingress.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithCacheSecurityGroupName(const char* value) { SetCacheSecurityGroupName(value); return *this;} /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline const Aws::String& GetEC2SecurityGroupName() const{ return m_eC2SecurityGroupName; } /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline bool EC2SecurityGroupNameHasBeenSet() const { return m_eC2SecurityGroupNameHasBeenSet; } /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline void SetEC2SecurityGroupName(const Aws::String& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = value; } /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline void SetEC2SecurityGroupName(Aws::String&& value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName = std::move(value); } /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline void SetEC2SecurityGroupName(const char* value) { m_eC2SecurityGroupNameHasBeenSet = true; m_eC2SecurityGroupName.assign(value); } /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const Aws::String& value) { SetEC2SecurityGroupName(value); return *this;} /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(Aws::String&& value) { SetEC2SecurityGroupName(std::move(value)); return *this;} /** *The Amazon EC2 security group to be authorized for ingress to the cache * security group.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupName(const char* value) { SetEC2SecurityGroupName(value); return *this;} /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline const Aws::String& GetEC2SecurityGroupOwnerId() const{ return m_eC2SecurityGroupOwnerId; } /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline bool EC2SecurityGroupOwnerIdHasBeenSet() const { return m_eC2SecurityGroupOwnerIdHasBeenSet; } /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline void SetEC2SecurityGroupOwnerId(const Aws::String& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = value; } /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline void SetEC2SecurityGroupOwnerId(Aws::String&& value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId = std::move(value); } /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline void SetEC2SecurityGroupOwnerId(const char* value) { m_eC2SecurityGroupOwnerIdHasBeenSet = true; m_eC2SecurityGroupOwnerId.assign(value); } /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const Aws::String& value) { SetEC2SecurityGroupOwnerId(value); return *this;} /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(Aws::String&& value) { SetEC2SecurityGroupOwnerId(std::move(value)); return *this;} /** *The Amazon account number of the Amazon EC2 security group owner. Note that * this is not the same thing as an Amazon access key ID - you must provide a valid * Amazon account number for this parameter.
*/ inline AuthorizeCacheSecurityGroupIngressRequest& WithEC2SecurityGroupOwnerId(const char* value) { SetEC2SecurityGroupOwnerId(value); return *this;} private: Aws::String m_cacheSecurityGroupName; bool m_cacheSecurityGroupNameHasBeenSet = false; Aws::String m_eC2SecurityGroupName; bool m_eC2SecurityGroupNameHasBeenSet = false; Aws::String m_eC2SecurityGroupOwnerId; bool m_eC2SecurityGroupOwnerIdHasBeenSet = false; }; } // namespace Model } // namespace ElastiCache } // namespace Aws