/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WorkSpacesWeb { namespace Model { /** *

The IP access settings resource that can be associated with a web portal. *

See Also:

AWS * API Reference

*/ class IpAccessSettings { public: AWS_WORKSPACESWEB_API IpAccessSettings(); AWS_WORKSPACESWEB_API IpAccessSettings(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API IpAccessSettings& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline const Aws::Vector& GetAssociatedPortalArns() const{ return m_associatedPortalArns; } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline bool AssociatedPortalArnsHasBeenSet() const { return m_associatedPortalArnsHasBeenSet; } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline void SetAssociatedPortalArns(const Aws::Vector& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = value; } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline void SetAssociatedPortalArns(Aws::Vector&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns = std::move(value); } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline IpAccessSettings& WithAssociatedPortalArns(const Aws::Vector& value) { SetAssociatedPortalArns(value); return *this;} /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline IpAccessSettings& WithAssociatedPortalArns(Aws::Vector&& value) { SetAssociatedPortalArns(std::move(value)); return *this;} /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline IpAccessSettings& AddAssociatedPortalArns(const Aws::String& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline IpAccessSettings& AddAssociatedPortalArns(Aws::String&& value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(std::move(value)); return *this; } /** *

A list of web portal ARNs that this IP access settings resource is associated * with.

*/ inline IpAccessSettings& AddAssociatedPortalArns(const char* value) { m_associatedPortalArnsHasBeenSet = true; m_associatedPortalArns.push_back(value); return *this; } /** *

The creation date timestamp of the IP access settings.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The creation date timestamp of the IP access settings.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

The creation date timestamp of the IP access settings.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

The creation date timestamp of the IP access settings.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

The creation date timestamp of the IP access settings.

*/ inline IpAccessSettings& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The creation date timestamp of the IP access settings.

*/ inline IpAccessSettings& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The description of the IP access settings.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the IP access settings.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the IP access settings.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the IP access settings.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the IP access settings.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the IP access settings.

*/ inline IpAccessSettings& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the IP access settings.

*/ inline IpAccessSettings& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the IP access settings.

*/ inline IpAccessSettings& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The display name of the IP access settings.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The display name of the IP access settings.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The display name of the IP access settings.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The display name of the IP access settings.

*/ inline IpAccessSettings& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The display name of the IP access settings.

*/ inline IpAccessSettings& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The display name of the IP access settings.

*/ inline IpAccessSettings& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The ARN of the IP access settings resource.

*/ inline const Aws::String& GetIpAccessSettingsArn() const{ return m_ipAccessSettingsArn; } /** *

The ARN of the IP access settings resource.

*/ inline bool IpAccessSettingsArnHasBeenSet() const { return m_ipAccessSettingsArnHasBeenSet; } /** *

The ARN of the IP access settings resource.

*/ inline void SetIpAccessSettingsArn(const Aws::String& value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn = value; } /** *

The ARN of the IP access settings resource.

*/ inline void SetIpAccessSettingsArn(Aws::String&& value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn = std::move(value); } /** *

The ARN of the IP access settings resource.

*/ inline void SetIpAccessSettingsArn(const char* value) { m_ipAccessSettingsArnHasBeenSet = true; m_ipAccessSettingsArn.assign(value); } /** *

The ARN of the IP access settings resource.

*/ inline IpAccessSettings& WithIpAccessSettingsArn(const Aws::String& value) { SetIpAccessSettingsArn(value); return *this;} /** *

The ARN of the IP access settings resource.

*/ inline IpAccessSettings& WithIpAccessSettingsArn(Aws::String&& value) { SetIpAccessSettingsArn(std::move(value)); return *this;} /** *

The ARN of the IP access settings resource.

*/ inline IpAccessSettings& WithIpAccessSettingsArn(const char* value) { SetIpAccessSettingsArn(value); return *this;} /** *

The IP rules of the IP access settings.

*/ inline const Aws::Vector& GetIpRules() const{ return m_ipRules; } /** *

The IP rules of the IP access settings.

*/ inline bool IpRulesHasBeenSet() const { return m_ipRulesHasBeenSet; } /** *

The IP rules of the IP access settings.

*/ inline void SetIpRules(const Aws::Vector& value) { m_ipRulesHasBeenSet = true; m_ipRules = value; } /** *

The IP rules of the IP access settings.

*/ inline void SetIpRules(Aws::Vector&& value) { m_ipRulesHasBeenSet = true; m_ipRules = std::move(value); } /** *

The IP rules of the IP access settings.

*/ inline IpAccessSettings& WithIpRules(const Aws::Vector& value) { SetIpRules(value); return *this;} /** *

The IP rules of the IP access settings.

*/ inline IpAccessSettings& WithIpRules(Aws::Vector&& value) { SetIpRules(std::move(value)); return *this;} /** *

The IP rules of the IP access settings.

*/ inline IpAccessSettings& AddIpRules(const IpRule& value) { m_ipRulesHasBeenSet = true; m_ipRules.push_back(value); return *this; } /** *

The IP rules of the IP access settings.

*/ inline IpAccessSettings& AddIpRules(IpRule&& value) { m_ipRulesHasBeenSet = true; m_ipRules.push_back(std::move(value)); return *this; } private: Aws::Vector m_associatedPortalArns; bool m_associatedPortalArnsHasBeenSet = false; Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_ipAccessSettingsArn; bool m_ipAccessSettingsArnHasBeenSet = false; Aws::Vector m_ipRules; bool m_ipRulesHasBeenSet = false; }; } // namespace Model } // namespace WorkSpacesWeb } // namespace Aws