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

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline const Aws::String& GetContextName() const{ return m_contextName; } /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; } /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline void SetContextName(const Aws::String& value) { m_contextNameHasBeenSet = true; m_contextName = value; } /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline void SetContextName(Aws::String&& value) { m_contextNameHasBeenSet = true; m_contextName = std::move(value); } /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline void SetContextName(const char* value) { m_contextNameHasBeenSet = true; m_contextName.assign(value); } /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline CreateContextRequest& WithContextName(const Aws::String& value) { SetContextName(value); return *this;} /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline CreateContextRequest& WithContextName(Aws::String&& value) { SetContextName(std::move(value)); return *this;} /** *

The name of the context. Must be unique to your account in an Amazon Web * Services Region.

*/ inline CreateContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;} /** *

The source type, ID, and URI.

*/ inline const ContextSource& GetSource() const{ return m_source; } /** *

The source type, ID, and URI.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source type, ID, and URI.

*/ inline void SetSource(const ContextSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source type, ID, and URI.

*/ inline void SetSource(ContextSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source type, ID, and URI.

*/ inline CreateContextRequest& WithSource(const ContextSource& value) { SetSource(value); return *this;} /** *

The source type, ID, and URI.

*/ inline CreateContextRequest& WithSource(ContextSource&& value) { SetSource(std::move(value)); return *this;} /** *

The context type.

*/ inline const Aws::String& GetContextType() const{ return m_contextType; } /** *

The context type.

*/ inline bool ContextTypeHasBeenSet() const { return m_contextTypeHasBeenSet; } /** *

The context type.

*/ inline void SetContextType(const Aws::String& value) { m_contextTypeHasBeenSet = true; m_contextType = value; } /** *

The context type.

*/ inline void SetContextType(Aws::String&& value) { m_contextTypeHasBeenSet = true; m_contextType = std::move(value); } /** *

The context type.

*/ inline void SetContextType(const char* value) { m_contextTypeHasBeenSet = true; m_contextType.assign(value); } /** *

The context type.

*/ inline CreateContextRequest& WithContextType(const Aws::String& value) { SetContextType(value); return *this;} /** *

The context type.

*/ inline CreateContextRequest& WithContextType(Aws::String&& value) { SetContextType(std::move(value)); return *this;} /** *

The context type.

*/ inline CreateContextRequest& WithContextType(const char* value) { SetContextType(value); return *this;} /** *

The description of the context.

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

The description of the context.

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

The description of the context.

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

The description of the context.

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

The description of the context.

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

The description of the context.

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

The description of the context.

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

The description of the context.

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

A list of properties to add to the context.

*/ inline const Aws::Map& GetProperties() const{ return m_properties; } /** *

A list of properties to add to the context.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

A list of properties to add to the context.

*/ inline void SetProperties(const Aws::Map& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

A list of properties to add to the context.

*/ inline void SetProperties(Aws::Map&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& WithProperties(const Aws::Map& value) { SetProperties(value); return *this;} /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& WithProperties(Aws::Map&& value) { SetProperties(std::move(value)); return *this;} /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

A list of properties to add to the context.

*/ inline CreateContextRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

A list of tags to apply to the context.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to apply to the context.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to apply to the context.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to apply to the context.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to apply to the context.

*/ inline CreateContextRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to apply to the context.

*/ inline CreateContextRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to apply to the context.

*/ inline CreateContextRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to apply to the context.

*/ inline CreateContextRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_contextName; bool m_contextNameHasBeenSet = false; ContextSource m_source; bool m_sourceHasBeenSet = false; Aws::String m_contextType; bool m_contextTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_properties; bool m_propertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws