in modules/AWSPowerShell/Cmdlets/CloudSearch/Basic/Set-CSIndexField-Cmdlet.cs [948:1784]
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
// create request
var request = new Amazon.CloudSearch.Model.DefineIndexFieldRequest();
if (cmdletContext.DomainName != null)
{
request.DomainName = cmdletContext.DomainName;
}
// populate IndexField
var requestIndexFieldIsNull = true;
request.IndexField = new Amazon.CloudSearch.Model.IndexField();
System.String requestIndexField_indexField_IndexFieldName = null;
if (cmdletContext.IndexField_IndexFieldName != null)
{
requestIndexField_indexField_IndexFieldName = cmdletContext.IndexField_IndexFieldName;
}
if (requestIndexField_indexField_IndexFieldName != null)
{
request.IndexField.IndexFieldName = requestIndexField_indexField_IndexFieldName;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.IndexFieldType requestIndexField_indexField_IndexFieldType = null;
if (cmdletContext.IndexField_IndexFieldType != null)
{
requestIndexField_indexField_IndexFieldType = cmdletContext.IndexField_IndexFieldType;
}
if (requestIndexField_indexField_IndexFieldType != null)
{
request.IndexField.IndexFieldType = requestIndexField_indexField_IndexFieldType;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.DateArrayOptions requestIndexField_indexField_DateArrayOptions = null;
// populate DateArrayOptions
var requestIndexField_indexField_DateArrayOptionsIsNull = true;
requestIndexField_indexField_DateArrayOptions = new Amazon.CloudSearch.Model.DateArrayOptions();
System.String requestIndexField_indexField_DateArrayOptions_dateArrayOptions_DefaultValue = null;
if (cmdletContext.DateArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_DateArrayOptions_dateArrayOptions_DefaultValue = cmdletContext.DateArrayOptions_DefaultValue;
}
if (requestIndexField_indexField_DateArrayOptions_dateArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_DateArrayOptions.DefaultValue = requestIndexField_indexField_DateArrayOptions_dateArrayOptions_DefaultValue;
requestIndexField_indexField_DateArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateArrayOptions_dateArrayOptions_FacetEnabled = null;
if (cmdletContext.DateArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_DateArrayOptions_dateArrayOptions_FacetEnabled = cmdletContext.DateArrayOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_DateArrayOptions_dateArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_DateArrayOptions.FacetEnabled = requestIndexField_indexField_DateArrayOptions_dateArrayOptions_FacetEnabled.Value;
requestIndexField_indexField_DateArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateArrayOptions_dateArrayOptions_ReturnEnabled = null;
if (cmdletContext.DateArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DateArrayOptions_dateArrayOptions_ReturnEnabled = cmdletContext.DateArrayOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_DateArrayOptions_dateArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DateArrayOptions.ReturnEnabled = requestIndexField_indexField_DateArrayOptions_dateArrayOptions_ReturnEnabled.Value;
requestIndexField_indexField_DateArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SearchEnabled = null;
if (cmdletContext.DateArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SearchEnabled = cmdletContext.DateArrayOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_DateArrayOptions.SearchEnabled = requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SearchEnabled.Value;
requestIndexField_indexField_DateArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SourceField = null;
if (cmdletContext.DateArrayOptions_SourceField != null)
{
requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SourceField = cmdletContext.DateArrayOptions_SourceField;
}
if (requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SourceField != null)
{
requestIndexField_indexField_DateArrayOptions.SourceFields = requestIndexField_indexField_DateArrayOptions_dateArrayOptions_SourceField;
requestIndexField_indexField_DateArrayOptionsIsNull = false;
}
// determine if requestIndexField_indexField_DateArrayOptions should be set to null
if (requestIndexField_indexField_DateArrayOptionsIsNull)
{
requestIndexField_indexField_DateArrayOptions = null;
}
if (requestIndexField_indexField_DateArrayOptions != null)
{
request.IndexField.DateArrayOptions = requestIndexField_indexField_DateArrayOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.DoubleArrayOptions requestIndexField_indexField_DoubleArrayOptions = null;
// populate DoubleArrayOptions
var requestIndexField_indexField_DoubleArrayOptionsIsNull = true;
requestIndexField_indexField_DoubleArrayOptions = new Amazon.CloudSearch.Model.DoubleArrayOptions();
System.Double? requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_DefaultValue = null;
if (cmdletContext.DoubleArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_DefaultValue = cmdletContext.DoubleArrayOptions_DefaultValue.Value;
}
if (requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_DoubleArrayOptions.DefaultValue = requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_DefaultValue.Value;
requestIndexField_indexField_DoubleArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_FacetEnabled = null;
if (cmdletContext.DoubleArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_FacetEnabled = cmdletContext.DoubleArrayOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions.FacetEnabled = requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_FacetEnabled.Value;
requestIndexField_indexField_DoubleArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_ReturnEnabled = null;
if (cmdletContext.DoubleArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_ReturnEnabled = cmdletContext.DoubleArrayOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions.ReturnEnabled = requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_ReturnEnabled.Value;
requestIndexField_indexField_DoubleArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SearchEnabled = null;
if (cmdletContext.DoubleArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SearchEnabled = cmdletContext.DoubleArrayOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_DoubleArrayOptions.SearchEnabled = requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SearchEnabled.Value;
requestIndexField_indexField_DoubleArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SourceField = null;
if (cmdletContext.DoubleArrayOptions_SourceField != null)
{
requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SourceField = cmdletContext.DoubleArrayOptions_SourceField;
}
if (requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SourceField != null)
{
requestIndexField_indexField_DoubleArrayOptions.SourceFields = requestIndexField_indexField_DoubleArrayOptions_doubleArrayOptions_SourceField;
requestIndexField_indexField_DoubleArrayOptionsIsNull = false;
}
// determine if requestIndexField_indexField_DoubleArrayOptions should be set to null
if (requestIndexField_indexField_DoubleArrayOptionsIsNull)
{
requestIndexField_indexField_DoubleArrayOptions = null;
}
if (requestIndexField_indexField_DoubleArrayOptions != null)
{
request.IndexField.DoubleArrayOptions = requestIndexField_indexField_DoubleArrayOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.IntArrayOptions requestIndexField_indexField_IntArrayOptions = null;
// populate IntArrayOptions
var requestIndexField_indexField_IntArrayOptionsIsNull = true;
requestIndexField_indexField_IntArrayOptions = new Amazon.CloudSearch.Model.IntArrayOptions();
System.Int64? requestIndexField_indexField_IntArrayOptions_intArrayOptions_DefaultValue = null;
if (cmdletContext.IntArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_IntArrayOptions_intArrayOptions_DefaultValue = cmdletContext.IntArrayOptions_DefaultValue.Value;
}
if (requestIndexField_indexField_IntArrayOptions_intArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_IntArrayOptions.DefaultValue = requestIndexField_indexField_IntArrayOptions_intArrayOptions_DefaultValue.Value;
requestIndexField_indexField_IntArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntArrayOptions_intArrayOptions_FacetEnabled = null;
if (cmdletContext.IntArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_IntArrayOptions_intArrayOptions_FacetEnabled = cmdletContext.IntArrayOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_IntArrayOptions_intArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_IntArrayOptions.FacetEnabled = requestIndexField_indexField_IntArrayOptions_intArrayOptions_FacetEnabled.Value;
requestIndexField_indexField_IntArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntArrayOptions_intArrayOptions_ReturnEnabled = null;
if (cmdletContext.IntArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_IntArrayOptions_intArrayOptions_ReturnEnabled = cmdletContext.IntArrayOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_IntArrayOptions_intArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_IntArrayOptions.ReturnEnabled = requestIndexField_indexField_IntArrayOptions_intArrayOptions_ReturnEnabled.Value;
requestIndexField_indexField_IntArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntArrayOptions_intArrayOptions_SearchEnabled = null;
if (cmdletContext.IntArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_IntArrayOptions_intArrayOptions_SearchEnabled = cmdletContext.IntArrayOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_IntArrayOptions_intArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_IntArrayOptions.SearchEnabled = requestIndexField_indexField_IntArrayOptions_intArrayOptions_SearchEnabled.Value;
requestIndexField_indexField_IntArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_IntArrayOptions_intArrayOptions_SourceField = null;
if (cmdletContext.IntArrayOptions_SourceField != null)
{
requestIndexField_indexField_IntArrayOptions_intArrayOptions_SourceField = cmdletContext.IntArrayOptions_SourceField;
}
if (requestIndexField_indexField_IntArrayOptions_intArrayOptions_SourceField != null)
{
requestIndexField_indexField_IntArrayOptions.SourceFields = requestIndexField_indexField_IntArrayOptions_intArrayOptions_SourceField;
requestIndexField_indexField_IntArrayOptionsIsNull = false;
}
// determine if requestIndexField_indexField_IntArrayOptions should be set to null
if (requestIndexField_indexField_IntArrayOptionsIsNull)
{
requestIndexField_indexField_IntArrayOptions = null;
}
if (requestIndexField_indexField_IntArrayOptions != null)
{
request.IndexField.IntArrayOptions = requestIndexField_indexField_IntArrayOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.LiteralArrayOptions requestIndexField_indexField_LiteralArrayOptions = null;
// populate LiteralArrayOptions
var requestIndexField_indexField_LiteralArrayOptionsIsNull = true;
requestIndexField_indexField_LiteralArrayOptions = new Amazon.CloudSearch.Model.LiteralArrayOptions();
System.String requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_DefaultValue = null;
if (cmdletContext.LiteralArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_DefaultValue = cmdletContext.LiteralArrayOptions_DefaultValue;
}
if (requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_LiteralArrayOptions.DefaultValue = requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_DefaultValue;
requestIndexField_indexField_LiteralArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_FacetEnabled = null;
if (cmdletContext.LiteralArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_FacetEnabled = cmdletContext.LiteralArrayOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_FacetEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions.FacetEnabled = requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_FacetEnabled.Value;
requestIndexField_indexField_LiteralArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_ReturnEnabled = null;
if (cmdletContext.LiteralArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_ReturnEnabled = cmdletContext.LiteralArrayOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions.ReturnEnabled = requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_ReturnEnabled.Value;
requestIndexField_indexField_LiteralArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SearchEnabled = null;
if (cmdletContext.LiteralArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SearchEnabled = cmdletContext.LiteralArrayOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SearchEnabled != null)
{
requestIndexField_indexField_LiteralArrayOptions.SearchEnabled = requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SearchEnabled.Value;
requestIndexField_indexField_LiteralArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SourceField = null;
if (cmdletContext.LiteralArrayOptions_SourceField != null)
{
requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SourceField = cmdletContext.LiteralArrayOptions_SourceField;
}
if (requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SourceField != null)
{
requestIndexField_indexField_LiteralArrayOptions.SourceFields = requestIndexField_indexField_LiteralArrayOptions_literalArrayOptions_SourceField;
requestIndexField_indexField_LiteralArrayOptionsIsNull = false;
}
// determine if requestIndexField_indexField_LiteralArrayOptions should be set to null
if (requestIndexField_indexField_LiteralArrayOptionsIsNull)
{
requestIndexField_indexField_LiteralArrayOptions = null;
}
if (requestIndexField_indexField_LiteralArrayOptions != null)
{
request.IndexField.LiteralArrayOptions = requestIndexField_indexField_LiteralArrayOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.TextArrayOptions requestIndexField_indexField_TextArrayOptions = null;
// populate TextArrayOptions
var requestIndexField_indexField_TextArrayOptionsIsNull = true;
requestIndexField_indexField_TextArrayOptions = new Amazon.CloudSearch.Model.TextArrayOptions();
System.String requestIndexField_indexField_TextArrayOptions_textArrayOptions_AnalysisScheme = null;
if (cmdletContext.TextArrayOptions_AnalysisScheme != null)
{
requestIndexField_indexField_TextArrayOptions_textArrayOptions_AnalysisScheme = cmdletContext.TextArrayOptions_AnalysisScheme;
}
if (requestIndexField_indexField_TextArrayOptions_textArrayOptions_AnalysisScheme != null)
{
requestIndexField_indexField_TextArrayOptions.AnalysisScheme = requestIndexField_indexField_TextArrayOptions_textArrayOptions_AnalysisScheme;
requestIndexField_indexField_TextArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_TextArrayOptions_textArrayOptions_DefaultValue = null;
if (cmdletContext.TextArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_TextArrayOptions_textArrayOptions_DefaultValue = cmdletContext.TextArrayOptions_DefaultValue;
}
if (requestIndexField_indexField_TextArrayOptions_textArrayOptions_DefaultValue != null)
{
requestIndexField_indexField_TextArrayOptions.DefaultValue = requestIndexField_indexField_TextArrayOptions_textArrayOptions_DefaultValue;
requestIndexField_indexField_TextArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_TextArrayOptions_textArrayOptions_HighlightEnabled = null;
if (cmdletContext.TextArrayOptions_HighlightEnabled != null)
{
requestIndexField_indexField_TextArrayOptions_textArrayOptions_HighlightEnabled = cmdletContext.TextArrayOptions_HighlightEnabled.Value;
}
if (requestIndexField_indexField_TextArrayOptions_textArrayOptions_HighlightEnabled != null)
{
requestIndexField_indexField_TextArrayOptions.HighlightEnabled = requestIndexField_indexField_TextArrayOptions_textArrayOptions_HighlightEnabled.Value;
requestIndexField_indexField_TextArrayOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_TextArrayOptions_textArrayOptions_ReturnEnabled = null;
if (cmdletContext.TextArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_TextArrayOptions_textArrayOptions_ReturnEnabled = cmdletContext.TextArrayOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_TextArrayOptions_textArrayOptions_ReturnEnabled != null)
{
requestIndexField_indexField_TextArrayOptions.ReturnEnabled = requestIndexField_indexField_TextArrayOptions_textArrayOptions_ReturnEnabled.Value;
requestIndexField_indexField_TextArrayOptionsIsNull = false;
}
System.String requestIndexField_indexField_TextArrayOptions_textArrayOptions_SourceField = null;
if (cmdletContext.TextArrayOptions_SourceField != null)
{
requestIndexField_indexField_TextArrayOptions_textArrayOptions_SourceField = cmdletContext.TextArrayOptions_SourceField;
}
if (requestIndexField_indexField_TextArrayOptions_textArrayOptions_SourceField != null)
{
requestIndexField_indexField_TextArrayOptions.SourceFields = requestIndexField_indexField_TextArrayOptions_textArrayOptions_SourceField;
requestIndexField_indexField_TextArrayOptionsIsNull = false;
}
// determine if requestIndexField_indexField_TextArrayOptions should be set to null
if (requestIndexField_indexField_TextArrayOptionsIsNull)
{
requestIndexField_indexField_TextArrayOptions = null;
}
if (requestIndexField_indexField_TextArrayOptions != null)
{
request.IndexField.TextArrayOptions = requestIndexField_indexField_TextArrayOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.DateOptions requestIndexField_indexField_DateOptions = null;
// populate DateOptions
var requestIndexField_indexField_DateOptionsIsNull = true;
requestIndexField_indexField_DateOptions = new Amazon.CloudSearch.Model.DateOptions();
System.String requestIndexField_indexField_DateOptions_dateOptions_DefaultValue = null;
if (cmdletContext.DateOptions_DefaultValue != null)
{
requestIndexField_indexField_DateOptions_dateOptions_DefaultValue = cmdletContext.DateOptions_DefaultValue;
}
if (requestIndexField_indexField_DateOptions_dateOptions_DefaultValue != null)
{
requestIndexField_indexField_DateOptions.DefaultValue = requestIndexField_indexField_DateOptions_dateOptions_DefaultValue;
requestIndexField_indexField_DateOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateOptions_dateOptions_FacetEnabled = null;
if (cmdletContext.DateOptions_FacetEnabled != null)
{
requestIndexField_indexField_DateOptions_dateOptions_FacetEnabled = cmdletContext.DateOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_DateOptions_dateOptions_FacetEnabled != null)
{
requestIndexField_indexField_DateOptions.FacetEnabled = requestIndexField_indexField_DateOptions_dateOptions_FacetEnabled.Value;
requestIndexField_indexField_DateOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateOptions_dateOptions_ReturnEnabled = null;
if (cmdletContext.DateOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DateOptions_dateOptions_ReturnEnabled = cmdletContext.DateOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_DateOptions_dateOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DateOptions.ReturnEnabled = requestIndexField_indexField_DateOptions_dateOptions_ReturnEnabled.Value;
requestIndexField_indexField_DateOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateOptions_dateOptions_SearchEnabled = null;
if (cmdletContext.DateOptions_SearchEnabled != null)
{
requestIndexField_indexField_DateOptions_dateOptions_SearchEnabled = cmdletContext.DateOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_DateOptions_dateOptions_SearchEnabled != null)
{
requestIndexField_indexField_DateOptions.SearchEnabled = requestIndexField_indexField_DateOptions_dateOptions_SearchEnabled.Value;
requestIndexField_indexField_DateOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DateOptions_dateOptions_SortEnabled = null;
if (cmdletContext.DateOptions_SortEnabled != null)
{
requestIndexField_indexField_DateOptions_dateOptions_SortEnabled = cmdletContext.DateOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_DateOptions_dateOptions_SortEnabled != null)
{
requestIndexField_indexField_DateOptions.SortEnabled = requestIndexField_indexField_DateOptions_dateOptions_SortEnabled.Value;
requestIndexField_indexField_DateOptionsIsNull = false;
}
System.String requestIndexField_indexField_DateOptions_dateOptions_SourceField = null;
if (cmdletContext.DateOptions_SourceField != null)
{
requestIndexField_indexField_DateOptions_dateOptions_SourceField = cmdletContext.DateOptions_SourceField;
}
if (requestIndexField_indexField_DateOptions_dateOptions_SourceField != null)
{
requestIndexField_indexField_DateOptions.SourceField = requestIndexField_indexField_DateOptions_dateOptions_SourceField;
requestIndexField_indexField_DateOptionsIsNull = false;
}
// determine if requestIndexField_indexField_DateOptions should be set to null
if (requestIndexField_indexField_DateOptionsIsNull)
{
requestIndexField_indexField_DateOptions = null;
}
if (requestIndexField_indexField_DateOptions != null)
{
request.IndexField.DateOptions = requestIndexField_indexField_DateOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.DoubleOptions requestIndexField_indexField_DoubleOptions = null;
// populate DoubleOptions
var requestIndexField_indexField_DoubleOptionsIsNull = true;
requestIndexField_indexField_DoubleOptions = new Amazon.CloudSearch.Model.DoubleOptions();
System.Double? requestIndexField_indexField_DoubleOptions_doubleOptions_DefaultValue = null;
if (cmdletContext.DoubleOptions_DefaultValue != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_DefaultValue = cmdletContext.DoubleOptions_DefaultValue.Value;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_DefaultValue != null)
{
requestIndexField_indexField_DoubleOptions.DefaultValue = requestIndexField_indexField_DoubleOptions_doubleOptions_DefaultValue.Value;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleOptions_doubleOptions_FacetEnabled = null;
if (cmdletContext.DoubleOptions_FacetEnabled != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_FacetEnabled = cmdletContext.DoubleOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_FacetEnabled != null)
{
requestIndexField_indexField_DoubleOptions.FacetEnabled = requestIndexField_indexField_DoubleOptions_doubleOptions_FacetEnabled.Value;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleOptions_doubleOptions_ReturnEnabled = null;
if (cmdletContext.DoubleOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_ReturnEnabled = cmdletContext.DoubleOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_ReturnEnabled != null)
{
requestIndexField_indexField_DoubleOptions.ReturnEnabled = requestIndexField_indexField_DoubleOptions_doubleOptions_ReturnEnabled.Value;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleOptions_doubleOptions_SearchEnabled = null;
if (cmdletContext.DoubleOptions_SearchEnabled != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_SearchEnabled = cmdletContext.DoubleOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_SearchEnabled != null)
{
requestIndexField_indexField_DoubleOptions.SearchEnabled = requestIndexField_indexField_DoubleOptions_doubleOptions_SearchEnabled.Value;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_DoubleOptions_doubleOptions_SortEnabled = null;
if (cmdletContext.DoubleOptions_SortEnabled != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_SortEnabled = cmdletContext.DoubleOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_SortEnabled != null)
{
requestIndexField_indexField_DoubleOptions.SortEnabled = requestIndexField_indexField_DoubleOptions_doubleOptions_SortEnabled.Value;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
System.String requestIndexField_indexField_DoubleOptions_doubleOptions_SourceField = null;
if (cmdletContext.DoubleOptions_SourceField != null)
{
requestIndexField_indexField_DoubleOptions_doubleOptions_SourceField = cmdletContext.DoubleOptions_SourceField;
}
if (requestIndexField_indexField_DoubleOptions_doubleOptions_SourceField != null)
{
requestIndexField_indexField_DoubleOptions.SourceField = requestIndexField_indexField_DoubleOptions_doubleOptions_SourceField;
requestIndexField_indexField_DoubleOptionsIsNull = false;
}
// determine if requestIndexField_indexField_DoubleOptions should be set to null
if (requestIndexField_indexField_DoubleOptionsIsNull)
{
requestIndexField_indexField_DoubleOptions = null;
}
if (requestIndexField_indexField_DoubleOptions != null)
{
request.IndexField.DoubleOptions = requestIndexField_indexField_DoubleOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.IntOptions requestIndexField_indexField_IntOptions = null;
// populate IntOptions
var requestIndexField_indexField_IntOptionsIsNull = true;
requestIndexField_indexField_IntOptions = new Amazon.CloudSearch.Model.IntOptions();
System.Int64? requestIndexField_indexField_IntOptions_intOptions_DefaultValue = null;
if (cmdletContext.IntOptions_DefaultValue != null)
{
requestIndexField_indexField_IntOptions_intOptions_DefaultValue = cmdletContext.IntOptions_DefaultValue.Value;
}
if (requestIndexField_indexField_IntOptions_intOptions_DefaultValue != null)
{
requestIndexField_indexField_IntOptions.DefaultValue = requestIndexField_indexField_IntOptions_intOptions_DefaultValue.Value;
requestIndexField_indexField_IntOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntOptions_intOptions_FacetEnabled = null;
if (cmdletContext.IntOptions_FacetEnabled != null)
{
requestIndexField_indexField_IntOptions_intOptions_FacetEnabled = cmdletContext.IntOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_IntOptions_intOptions_FacetEnabled != null)
{
requestIndexField_indexField_IntOptions.FacetEnabled = requestIndexField_indexField_IntOptions_intOptions_FacetEnabled.Value;
requestIndexField_indexField_IntOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntOptions_intOptions_ReturnEnabled = null;
if (cmdletContext.IntOptions_ReturnEnabled != null)
{
requestIndexField_indexField_IntOptions_intOptions_ReturnEnabled = cmdletContext.IntOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_IntOptions_intOptions_ReturnEnabled != null)
{
requestIndexField_indexField_IntOptions.ReturnEnabled = requestIndexField_indexField_IntOptions_intOptions_ReturnEnabled.Value;
requestIndexField_indexField_IntOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntOptions_intOptions_SearchEnabled = null;
if (cmdletContext.IntOptions_SearchEnabled != null)
{
requestIndexField_indexField_IntOptions_intOptions_SearchEnabled = cmdletContext.IntOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_IntOptions_intOptions_SearchEnabled != null)
{
requestIndexField_indexField_IntOptions.SearchEnabled = requestIndexField_indexField_IntOptions_intOptions_SearchEnabled.Value;
requestIndexField_indexField_IntOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_IntOptions_intOptions_SortEnabled = null;
if (cmdletContext.IntOptions_SortEnabled != null)
{
requestIndexField_indexField_IntOptions_intOptions_SortEnabled = cmdletContext.IntOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_IntOptions_intOptions_SortEnabled != null)
{
requestIndexField_indexField_IntOptions.SortEnabled = requestIndexField_indexField_IntOptions_intOptions_SortEnabled.Value;
requestIndexField_indexField_IntOptionsIsNull = false;
}
System.String requestIndexField_indexField_IntOptions_intOptions_SourceField = null;
if (cmdletContext.IntOptions_SourceField != null)
{
requestIndexField_indexField_IntOptions_intOptions_SourceField = cmdletContext.IntOptions_SourceField;
}
if (requestIndexField_indexField_IntOptions_intOptions_SourceField != null)
{
requestIndexField_indexField_IntOptions.SourceField = requestIndexField_indexField_IntOptions_intOptions_SourceField;
requestIndexField_indexField_IntOptionsIsNull = false;
}
// determine if requestIndexField_indexField_IntOptions should be set to null
if (requestIndexField_indexField_IntOptionsIsNull)
{
requestIndexField_indexField_IntOptions = null;
}
if (requestIndexField_indexField_IntOptions != null)
{
request.IndexField.IntOptions = requestIndexField_indexField_IntOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.LatLonOptions requestIndexField_indexField_LatLonOptions = null;
// populate LatLonOptions
var requestIndexField_indexField_LatLonOptionsIsNull = true;
requestIndexField_indexField_LatLonOptions = new Amazon.CloudSearch.Model.LatLonOptions();
System.String requestIndexField_indexField_LatLonOptions_latLonOptions_DefaultValue = null;
if (cmdletContext.LatLonOptions_DefaultValue != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_DefaultValue = cmdletContext.LatLonOptions_DefaultValue;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_DefaultValue != null)
{
requestIndexField_indexField_LatLonOptions.DefaultValue = requestIndexField_indexField_LatLonOptions_latLonOptions_DefaultValue;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LatLonOptions_latLonOptions_FacetEnabled = null;
if (cmdletContext.LatLonOptions_FacetEnabled != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_FacetEnabled = cmdletContext.LatLonOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_FacetEnabled != null)
{
requestIndexField_indexField_LatLonOptions.FacetEnabled = requestIndexField_indexField_LatLonOptions_latLonOptions_FacetEnabled.Value;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LatLonOptions_latLonOptions_ReturnEnabled = null;
if (cmdletContext.LatLonOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_ReturnEnabled = cmdletContext.LatLonOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LatLonOptions.ReturnEnabled = requestIndexField_indexField_LatLonOptions_latLonOptions_ReturnEnabled.Value;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LatLonOptions_latLonOptions_SearchEnabled = null;
if (cmdletContext.LatLonOptions_SearchEnabled != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_SearchEnabled = cmdletContext.LatLonOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_SearchEnabled != null)
{
requestIndexField_indexField_LatLonOptions.SearchEnabled = requestIndexField_indexField_LatLonOptions_latLonOptions_SearchEnabled.Value;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LatLonOptions_latLonOptions_SortEnabled = null;
if (cmdletContext.LatLonOptions_SortEnabled != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_SortEnabled = cmdletContext.LatLonOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_SortEnabled != null)
{
requestIndexField_indexField_LatLonOptions.SortEnabled = requestIndexField_indexField_LatLonOptions_latLonOptions_SortEnabled.Value;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
System.String requestIndexField_indexField_LatLonOptions_latLonOptions_SourceField = null;
if (cmdletContext.LatLonOptions_SourceField != null)
{
requestIndexField_indexField_LatLonOptions_latLonOptions_SourceField = cmdletContext.LatLonOptions_SourceField;
}
if (requestIndexField_indexField_LatLonOptions_latLonOptions_SourceField != null)
{
requestIndexField_indexField_LatLonOptions.SourceField = requestIndexField_indexField_LatLonOptions_latLonOptions_SourceField;
requestIndexField_indexField_LatLonOptionsIsNull = false;
}
// determine if requestIndexField_indexField_LatLonOptions should be set to null
if (requestIndexField_indexField_LatLonOptionsIsNull)
{
requestIndexField_indexField_LatLonOptions = null;
}
if (requestIndexField_indexField_LatLonOptions != null)
{
request.IndexField.LatLonOptions = requestIndexField_indexField_LatLonOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.LiteralOptions requestIndexField_indexField_LiteralOptions = null;
// populate LiteralOptions
var requestIndexField_indexField_LiteralOptionsIsNull = true;
requestIndexField_indexField_LiteralOptions = new Amazon.CloudSearch.Model.LiteralOptions();
System.String requestIndexField_indexField_LiteralOptions_literalOptions_DefaultValue = null;
if (cmdletContext.LiteralOptions_DefaultValue != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_DefaultValue = cmdletContext.LiteralOptions_DefaultValue;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_DefaultValue != null)
{
requestIndexField_indexField_LiteralOptions.DefaultValue = requestIndexField_indexField_LiteralOptions_literalOptions_DefaultValue;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralOptions_literalOptions_FacetEnabled = null;
if (cmdletContext.LiteralOptions_FacetEnabled != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_FacetEnabled = cmdletContext.LiteralOptions_FacetEnabled.Value;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_FacetEnabled != null)
{
requestIndexField_indexField_LiteralOptions.FacetEnabled = requestIndexField_indexField_LiteralOptions_literalOptions_FacetEnabled.Value;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralOptions_literalOptions_ReturnEnabled = null;
if (cmdletContext.LiteralOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_ReturnEnabled = cmdletContext.LiteralOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_ReturnEnabled != null)
{
requestIndexField_indexField_LiteralOptions.ReturnEnabled = requestIndexField_indexField_LiteralOptions_literalOptions_ReturnEnabled.Value;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralOptions_literalOptions_SearchEnabled = null;
if (cmdletContext.LiteralOptions_SearchEnabled != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_SearchEnabled = cmdletContext.LiteralOptions_SearchEnabled.Value;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_SearchEnabled != null)
{
requestIndexField_indexField_LiteralOptions.SearchEnabled = requestIndexField_indexField_LiteralOptions_literalOptions_SearchEnabled.Value;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_LiteralOptions_literalOptions_SortEnabled = null;
if (cmdletContext.LiteralOptions_SortEnabled != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_SortEnabled = cmdletContext.LiteralOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_SortEnabled != null)
{
requestIndexField_indexField_LiteralOptions.SortEnabled = requestIndexField_indexField_LiteralOptions_literalOptions_SortEnabled.Value;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
System.String requestIndexField_indexField_LiteralOptions_literalOptions_SourceField = null;
if (cmdletContext.LiteralOptions_SourceField != null)
{
requestIndexField_indexField_LiteralOptions_literalOptions_SourceField = cmdletContext.LiteralOptions_SourceField;
}
if (requestIndexField_indexField_LiteralOptions_literalOptions_SourceField != null)
{
requestIndexField_indexField_LiteralOptions.SourceField = requestIndexField_indexField_LiteralOptions_literalOptions_SourceField;
requestIndexField_indexField_LiteralOptionsIsNull = false;
}
// determine if requestIndexField_indexField_LiteralOptions should be set to null
if (requestIndexField_indexField_LiteralOptionsIsNull)
{
requestIndexField_indexField_LiteralOptions = null;
}
if (requestIndexField_indexField_LiteralOptions != null)
{
request.IndexField.LiteralOptions = requestIndexField_indexField_LiteralOptions;
requestIndexFieldIsNull = false;
}
Amazon.CloudSearch.Model.TextOptions requestIndexField_indexField_TextOptions = null;
// populate TextOptions
var requestIndexField_indexField_TextOptionsIsNull = true;
requestIndexField_indexField_TextOptions = new Amazon.CloudSearch.Model.TextOptions();
System.String requestIndexField_indexField_TextOptions_textOptions_AnalysisScheme = null;
if (cmdletContext.TextOptions_AnalysisScheme != null)
{
requestIndexField_indexField_TextOptions_textOptions_AnalysisScheme = cmdletContext.TextOptions_AnalysisScheme;
}
if (requestIndexField_indexField_TextOptions_textOptions_AnalysisScheme != null)
{
requestIndexField_indexField_TextOptions.AnalysisScheme = requestIndexField_indexField_TextOptions_textOptions_AnalysisScheme;
requestIndexField_indexField_TextOptionsIsNull = false;
}
System.String requestIndexField_indexField_TextOptions_textOptions_DefaultValue = null;
if (cmdletContext.TextOptions_DefaultValue != null)
{
requestIndexField_indexField_TextOptions_textOptions_DefaultValue = cmdletContext.TextOptions_DefaultValue;
}
if (requestIndexField_indexField_TextOptions_textOptions_DefaultValue != null)
{
requestIndexField_indexField_TextOptions.DefaultValue = requestIndexField_indexField_TextOptions_textOptions_DefaultValue;
requestIndexField_indexField_TextOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_TextOptions_textOptions_HighlightEnabled = null;
if (cmdletContext.TextOptions_HighlightEnabled != null)
{
requestIndexField_indexField_TextOptions_textOptions_HighlightEnabled = cmdletContext.TextOptions_HighlightEnabled.Value;
}
if (requestIndexField_indexField_TextOptions_textOptions_HighlightEnabled != null)
{
requestIndexField_indexField_TextOptions.HighlightEnabled = requestIndexField_indexField_TextOptions_textOptions_HighlightEnabled.Value;
requestIndexField_indexField_TextOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_TextOptions_textOptions_ReturnEnabled = null;
if (cmdletContext.TextOptions_ReturnEnabled != null)
{
requestIndexField_indexField_TextOptions_textOptions_ReturnEnabled = cmdletContext.TextOptions_ReturnEnabled.Value;
}
if (requestIndexField_indexField_TextOptions_textOptions_ReturnEnabled != null)
{
requestIndexField_indexField_TextOptions.ReturnEnabled = requestIndexField_indexField_TextOptions_textOptions_ReturnEnabled.Value;
requestIndexField_indexField_TextOptionsIsNull = false;
}
System.Boolean? requestIndexField_indexField_TextOptions_textOptions_SortEnabled = null;
if (cmdletContext.TextOptions_SortEnabled != null)
{
requestIndexField_indexField_TextOptions_textOptions_SortEnabled = cmdletContext.TextOptions_SortEnabled.Value;
}
if (requestIndexField_indexField_TextOptions_textOptions_SortEnabled != null)
{
requestIndexField_indexField_TextOptions.SortEnabled = requestIndexField_indexField_TextOptions_textOptions_SortEnabled.Value;
requestIndexField_indexField_TextOptionsIsNull = false;
}
System.String requestIndexField_indexField_TextOptions_textOptions_SourceField = null;
if (cmdletContext.TextOptions_SourceField != null)
{
requestIndexField_indexField_TextOptions_textOptions_SourceField = cmdletContext.TextOptions_SourceField;
}
if (requestIndexField_indexField_TextOptions_textOptions_SourceField != null)
{
requestIndexField_indexField_TextOptions.SourceField = requestIndexField_indexField_TextOptions_textOptions_SourceField;
requestIndexField_indexField_TextOptionsIsNull = false;
}
// determine if requestIndexField_indexField_TextOptions should be set to null
if (requestIndexField_indexField_TextOptionsIsNull)
{
requestIndexField_indexField_TextOptions = null;
}
if (requestIndexField_indexField_TextOptions != null)
{
request.IndexField.TextOptions = requestIndexField_indexField_TextOptions;
requestIndexFieldIsNull = false;
}
// determine if request.IndexField should be set to null
if (requestIndexFieldIsNull)
{
request.IndexField = 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;
}