public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.FinSpaceData.Model.UpdateDatasetRequest();

            if (cmdletContext.Alias != null)
            {
                request.Alias = cmdletContext.Alias;
            }
            if (cmdletContext.ClientToken != null)
            {
                request.ClientToken = cmdletContext.ClientToken;
            }
            if (cmdletContext.DatasetDescription != null)
            {
                request.DatasetDescription = cmdletContext.DatasetDescription;
            }
            if (cmdletContext.DatasetId != null)
            {
                request.DatasetId = cmdletContext.DatasetId;
            }
            if (cmdletContext.DatasetTitle != null)
            {
                request.DatasetTitle = cmdletContext.DatasetTitle;
            }
            if (cmdletContext.Kind != null)
            {
                request.Kind = cmdletContext.Kind;
            }

            // populate SchemaDefinition
            var requestSchemaDefinitionIsNull = true;

            request.SchemaDefinition = new Amazon.FinSpaceData.Model.SchemaUnion();
            Amazon.FinSpaceData.Model.SchemaDefinition requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = null;

            // populate TabularSchemaConfig
            var requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull = true;

            requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = new Amazon.FinSpaceData.Model.SchemaDefinition();
            List <Amazon.FinSpaceData.Model.ColumnDefinition> requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column = null;

            if (cmdletContext.TabularSchemaConfig_Column != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column = cmdletContext.TabularSchemaConfig_Column;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig.Columns = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column;
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull   = false;
            }
            List <System.String> requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn = null;

            if (cmdletContext.TabularSchemaConfig_PrimaryKeyColumn != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn = cmdletContext.TabularSchemaConfig_PrimaryKeyColumn;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig.PrimaryKeyColumns = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn;
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull             = false;
            }
            // determine if requestSchemaDefinition_schemaDefinition_TabularSchemaConfig should be set to null
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = null;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig != null)
            {
                request.SchemaDefinition.TabularSchemaConfig = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig;
                requestSchemaDefinitionIsNull = false;
            }
            // determine if request.SchemaDefinition should be set to null
            if (requestSchemaDefinitionIsNull)
            {
                request.SchemaDefinition = null;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }
        public object Execute(ExecutorContext context)
        {
            var cmdletContext = context as CmdletContext;
            // create request
            var request = new Amazon.FinSpaceData.Model.CreateDatasetRequest();

            if (cmdletContext.Alias != null)
            {
                request.Alias = cmdletContext.Alias;
            }
            if (cmdletContext.ClientToken != null)
            {
                request.ClientToken = cmdletContext.ClientToken;
            }
            if (cmdletContext.DatasetDescription != null)
            {
                request.DatasetDescription = cmdletContext.DatasetDescription;
            }
            if (cmdletContext.DatasetTitle != null)
            {
                request.DatasetTitle = cmdletContext.DatasetTitle;
            }
            if (cmdletContext.Kind != null)
            {
                request.Kind = cmdletContext.Kind;
            }

            // populate OwnerInfo
            var requestOwnerInfoIsNull = true;

            request.OwnerInfo = new Amazon.FinSpaceData.Model.DatasetOwnerInfo();
            System.String requestOwnerInfo_ownerInfo_Email = null;
            if (cmdletContext.OwnerInfo_Email != null)
            {
                requestOwnerInfo_ownerInfo_Email = cmdletContext.OwnerInfo_Email;
            }
            if (requestOwnerInfo_ownerInfo_Email != null)
            {
                request.OwnerInfo.Email = requestOwnerInfo_ownerInfo_Email;
                requestOwnerInfoIsNull  = false;
            }
            System.String requestOwnerInfo_ownerInfo_Name = null;
            if (cmdletContext.OwnerInfo_Name != null)
            {
                requestOwnerInfo_ownerInfo_Name = cmdletContext.OwnerInfo_Name;
            }
            if (requestOwnerInfo_ownerInfo_Name != null)
            {
                request.OwnerInfo.Name = requestOwnerInfo_ownerInfo_Name;
                requestOwnerInfoIsNull = false;
            }
            System.String requestOwnerInfo_ownerInfo_PhoneNumber = null;
            if (cmdletContext.OwnerInfo_PhoneNumber != null)
            {
                requestOwnerInfo_ownerInfo_PhoneNumber = cmdletContext.OwnerInfo_PhoneNumber;
            }
            if (requestOwnerInfo_ownerInfo_PhoneNumber != null)
            {
                request.OwnerInfo.PhoneNumber = requestOwnerInfo_ownerInfo_PhoneNumber;
                requestOwnerInfoIsNull        = false;
            }
            // determine if request.OwnerInfo should be set to null
            if (requestOwnerInfoIsNull)
            {
                request.OwnerInfo = null;
            }

            // populate PermissionGroupParams
            var requestPermissionGroupParamsIsNull = true;

            request.PermissionGroupParams = new Amazon.FinSpaceData.Model.PermissionGroupParams();
            List <Amazon.FinSpaceData.Model.ResourcePermission> requestPermissionGroupParams_permissionGroupParams_DatasetPermission = null;

            if (cmdletContext.PermissionGroupParams_DatasetPermission != null)
            {
                requestPermissionGroupParams_permissionGroupParams_DatasetPermission = cmdletContext.PermissionGroupParams_DatasetPermission;
            }
            if (requestPermissionGroupParams_permissionGroupParams_DatasetPermission != null)
            {
                request.PermissionGroupParams.DatasetPermissions = requestPermissionGroupParams_permissionGroupParams_DatasetPermission;
                requestPermissionGroupParamsIsNull = false;
            }
            System.String requestPermissionGroupParams_permissionGroupParams_PermissionGroupId = null;
            if (cmdletContext.PermissionGroupParams_PermissionGroupId != null)
            {
                requestPermissionGroupParams_permissionGroupParams_PermissionGroupId = cmdletContext.PermissionGroupParams_PermissionGroupId;
            }
            if (requestPermissionGroupParams_permissionGroupParams_PermissionGroupId != null)
            {
                request.PermissionGroupParams.PermissionGroupId = requestPermissionGroupParams_permissionGroupParams_PermissionGroupId;
                requestPermissionGroupParamsIsNull = false;
            }
            // determine if request.PermissionGroupParams should be set to null
            if (requestPermissionGroupParamsIsNull)
            {
                request.PermissionGroupParams = null;
            }

            // populate SchemaDefinition
            var requestSchemaDefinitionIsNull = true;

            request.SchemaDefinition = new Amazon.FinSpaceData.Model.SchemaUnion();
            Amazon.FinSpaceData.Model.SchemaDefinition requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = null;

            // populate TabularSchemaConfig
            var requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull = true;

            requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = new Amazon.FinSpaceData.Model.SchemaDefinition();
            List <Amazon.FinSpaceData.Model.ColumnDefinition> requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column = null;

            if (cmdletContext.TabularSchemaConfig_Column != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column = cmdletContext.TabularSchemaConfig_Column;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig.Columns = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_Column;
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull   = false;
            }
            List <System.String> requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn = null;

            if (cmdletContext.TabularSchemaConfig_PrimaryKeyColumn != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn = cmdletContext.TabularSchemaConfig_PrimaryKeyColumn;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn != null)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig.PrimaryKeyColumns = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig_tabularSchemaConfig_PrimaryKeyColumn;
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull             = false;
            }
            // determine if requestSchemaDefinition_schemaDefinition_TabularSchemaConfig should be set to null
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfigIsNull)
            {
                requestSchemaDefinition_schemaDefinition_TabularSchemaConfig = null;
            }
            if (requestSchemaDefinition_schemaDefinition_TabularSchemaConfig != null)
            {
                request.SchemaDefinition.TabularSchemaConfig = requestSchemaDefinition_schemaDefinition_TabularSchemaConfig;
                requestSchemaDefinitionIsNull = false;
            }
            // determine if request.SchemaDefinition should be set to null
            if (requestSchemaDefinitionIsNull)
            {
                request.SchemaDefinition = null;
            }

            CmdletOutput output;

            // issue call
            var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);

            try
            {
                var    response       = CallAWSServiceOperation(client, request);
                object pipelineOutput = null;
                pipelineOutput = cmdletContext.Select(response, this);
                output         = new CmdletOutput
                {
                    PipelineOutput  = pipelineOutput,
                    ServiceResponse = response
                };
            }
            catch (Exception e)
            {
                output = new CmdletOutput {
                    ErrorResponse = e
                };
            }

            return(output);
        }