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

The domain ID.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The domain ID.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The domain ID.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The domain ID.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The domain ID.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The domain ID.

*/ inline CreatePresignedDomainUrlRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The domain ID.

*/ inline CreatePresignedDomainUrlRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The domain ID.

*/ inline CreatePresignedDomainUrlRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

The name of the UserProfile to sign-in as.

*/ inline const Aws::String& GetUserProfileName() const{ return m_userProfileName; } /** *

The name of the UserProfile to sign-in as.

*/ inline bool UserProfileNameHasBeenSet() const { return m_userProfileNameHasBeenSet; } /** *

The name of the UserProfile to sign-in as.

*/ inline void SetUserProfileName(const Aws::String& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = value; } /** *

The name of the UserProfile to sign-in as.

*/ inline void SetUserProfileName(Aws::String&& value) { m_userProfileNameHasBeenSet = true; m_userProfileName = std::move(value); } /** *

The name of the UserProfile to sign-in as.

*/ inline void SetUserProfileName(const char* value) { m_userProfileNameHasBeenSet = true; m_userProfileName.assign(value); } /** *

The name of the UserProfile to sign-in as.

*/ inline CreatePresignedDomainUrlRequest& WithUserProfileName(const Aws::String& value) { SetUserProfileName(value); return *this;} /** *

The name of the UserProfile to sign-in as.

*/ inline CreatePresignedDomainUrlRequest& WithUserProfileName(Aws::String&& value) { SetUserProfileName(std::move(value)); return *this;} /** *

The name of the UserProfile to sign-in as.

*/ inline CreatePresignedDomainUrlRequest& WithUserProfileName(const char* value) { SetUserProfileName(value); return *this;} /** *

The session expiration duration in seconds. This value defaults to 43200.

*/ inline int GetSessionExpirationDurationInSeconds() const{ return m_sessionExpirationDurationInSeconds; } /** *

The session expiration duration in seconds. This value defaults to 43200.

*/ inline bool SessionExpirationDurationInSecondsHasBeenSet() const { return m_sessionExpirationDurationInSecondsHasBeenSet; } /** *

The session expiration duration in seconds. This value defaults to 43200.

*/ inline void SetSessionExpirationDurationInSeconds(int value) { m_sessionExpirationDurationInSecondsHasBeenSet = true; m_sessionExpirationDurationInSeconds = value; } /** *

The session expiration duration in seconds. This value defaults to 43200.

*/ inline CreatePresignedDomainUrlRequest& WithSessionExpirationDurationInSeconds(int value) { SetSessionExpirationDurationInSeconds(value); return *this;} /** *

The number of seconds until the pre-signed URL expires. This value defaults * to 300.

*/ inline int GetExpiresInSeconds() const{ return m_expiresInSeconds; } /** *

The number of seconds until the pre-signed URL expires. This value defaults * to 300.

*/ inline bool ExpiresInSecondsHasBeenSet() const { return m_expiresInSecondsHasBeenSet; } /** *

The number of seconds until the pre-signed URL expires. This value defaults * to 300.

*/ inline void SetExpiresInSeconds(int value) { m_expiresInSecondsHasBeenSet = true; m_expiresInSeconds = value; } /** *

The number of seconds until the pre-signed URL expires. This value defaults * to 300.

*/ inline CreatePresignedDomainUrlRequest& WithExpiresInSeconds(int value) { SetExpiresInSeconds(value); return *this;} /** *

The name of the space.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space.

*/ inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; } /** *

The name of the space.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; } /** *

The name of the space.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); } /** *

The name of the space.

*/ inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); } /** *

The name of the space.

*/ inline CreatePresignedDomainUrlRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

*/ inline CreatePresignedDomainUrlRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space.

*/ inline CreatePresignedDomainUrlRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} private: Aws::String m_domainId; bool m_domainIdHasBeenSet = false; Aws::String m_userProfileName; bool m_userProfileNameHasBeenSet = false; int m_sessionExpirationDurationInSeconds; bool m_sessionExpirationDurationInSecondsHasBeenSet = false; int m_expiresInSeconds; bool m_expiresInSecondsHasBeenSet = false; Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws