/** * 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 VPCLattice { namespace Model { /** */ class UpdateServiceRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API UpdateServiceRequest(); // 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 "UpdateService"; } AWS_VPCLATTICE_API Aws::String SerializePayload() const override; /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline UpdateServiceRequest& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *

The type of IAM policy.

  • NONE: The resource * does not use an IAM policy. This is the default.

  • * AWS_IAM: The resource uses an IAM policy. When this type is used, * auth is enabled and an auth policy is required.

*/ inline UpdateServiceRequest& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline UpdateServiceRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline UpdateServiceRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline UpdateServiceRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline const Aws::String& GetServiceIdentifier() const{ return m_serviceIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline bool ServiceIdentifierHasBeenSet() const { return m_serviceIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const Aws::String& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(Aws::String&& value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceIdentifier(const char* value) { m_serviceIdentifierHasBeenSet = true; m_serviceIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline UpdateServiceRequest& WithServiceIdentifier(const Aws::String& value) { SetServiceIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline UpdateServiceRequest& WithServiceIdentifier(Aws::String&& value) { SetServiceIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service.

*/ inline UpdateServiceRequest& WithServiceIdentifier(const char* value) { SetServiceIdentifier(value); return *this;} private: AuthType m_authType; bool m_authTypeHasBeenSet = false; Aws::String m_certificateArn; bool m_certificateArnHasBeenSet = false; Aws::String m_serviceIdentifier; bool m_serviceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws