/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace WorkMail { namespace Model { /** */ class PutMobileDeviceAccessOverrideRequest : public WorkMailRequest { public: AWS_WORKMAIL_API PutMobileDeviceAccessOverrideRequest(); // 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 "PutMobileDeviceAccessOverride"; } AWS_WORKMAIL_API Aws::String SerializePayload() const override; AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Identifies the WorkMail organization for which you create the override.

*/ inline const Aws::String& GetOrganizationId() const{ return m_organizationId; } /** *

Identifies the WorkMail organization for which you create the override.

*/ inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; } /** *

Identifies the WorkMail organization for which you create the override.

*/ inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; } /** *

Identifies the WorkMail organization for which you create the override.

*/ inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); } /** *

Identifies the WorkMail organization for which you create the override.

*/ inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); } /** *

Identifies the WorkMail organization for which you create the override.

*/ inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;} /** *

Identifies the WorkMail organization for which you create the override.

*/ inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;} /** *

Identifies the WorkMail organization for which you create the override.

*/ inline PutMobileDeviceAccessOverrideRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;} /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline PutMobileDeviceAccessOverrideRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline PutMobileDeviceAccessOverrideRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

The WorkMail user for which you create the override. Accepts the following * types of user identities:

  • User ID: * 12345678-1234-1234-1234-123456789012 or * S-1-1-12-1234567890-123456789-123456789-1234

  • *

    Email address: user@domain.tld

  • User name: * user

*/ inline PutMobileDeviceAccessOverrideRequest& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline const Aws::String& GetDeviceId() const{ return m_deviceId; } /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline bool DeviceIdHasBeenSet() const { return m_deviceIdHasBeenSet; } /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline void SetDeviceId(const Aws::String& value) { m_deviceIdHasBeenSet = true; m_deviceId = value; } /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline void SetDeviceId(Aws::String&& value) { m_deviceIdHasBeenSet = true; m_deviceId = std::move(value); } /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline void SetDeviceId(const char* value) { m_deviceIdHasBeenSet = true; m_deviceId.assign(value); } /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(const Aws::String& value) { SetDeviceId(value); return *this;} /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(Aws::String&& value) { SetDeviceId(std::move(value)); return *this;} /** *

The mobile device for which you create the override. DeviceId is * case insensitive.

*/ inline PutMobileDeviceAccessOverrideRequest& WithDeviceId(const char* value) { SetDeviceId(value); return *this;} /** *

The effect of the override, ALLOW or DENY.

*/ inline const MobileDeviceAccessRuleEffect& GetEffect() const{ return m_effect; } /** *

The effect of the override, ALLOW or DENY.

*/ inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; } /** *

The effect of the override, ALLOW or DENY.

*/ inline void SetEffect(const MobileDeviceAccessRuleEffect& value) { m_effectHasBeenSet = true; m_effect = value; } /** *

The effect of the override, ALLOW or DENY.

*/ inline void SetEffect(MobileDeviceAccessRuleEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); } /** *

The effect of the override, ALLOW or DENY.

*/ inline PutMobileDeviceAccessOverrideRequest& WithEffect(const MobileDeviceAccessRuleEffect& value) { SetEffect(value); return *this;} /** *

The effect of the override, ALLOW or DENY.

*/ inline PutMobileDeviceAccessOverrideRequest& WithEffect(MobileDeviceAccessRuleEffect&& value) { SetEffect(std::move(value)); return *this;} /** *

A description of the override.

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

A description of the override.

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

A description of the override.

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

A description of the override.

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

A description of the override.

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

A description of the override.

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

A description of the override.

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

A description of the override.

*/ inline PutMobileDeviceAccessOverrideRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_organizationId; bool m_organizationIdHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_deviceId; bool m_deviceIdHasBeenSet = false; MobileDeviceAccessRuleEffect m_effect; bool m_effectHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace WorkMail } // namespace Aws