// SetGlobalTableDescription sets the GlobalTableDescription field's value.
191018
func (s *DescribeGlobalTableOutput) SetGlobalTableDescription(v *GlobalTableDescription) *DescribeGlobalTableOutput {
	s.GlobalTableDescription = v
	return s
}
324500
func (s *ListedFlow) SetDescription(v string) *ListedFlow {
	s.Description = &v
	return s
}
496509
func (s *QorSEOSetting) SetGlobalSetting(globalSetting map[string]string) {
	s.Setting.GlobalSetting = globalSetting
}
219662
func (s *RemoveFromGlobalClusterInput) SetGlobalClusterIdentifier(v string) *RemoveFromGlobalClusterInput {
	s.GlobalClusterIdentifier = &v
	return s
}
1059747
func (s *CreateTableOutput) SetTableDescription(v *TableDescription) *CreateTableOutput {
	s.TableDescription = v
	return s
}
1041193
func (s *UpdateGlobalTableSettingsInput) SetGlobalTableName(v string) *UpdateGlobalTableSettingsInput {
	s.GlobalTableName = &v
	return s
}
1272322
func (s *Table) SetDescription(v string) *Table {
	s.Description = &v
	return s
}
965663
func (s *ExclusionPreview) SetDescription(v string) *ExclusionPreview {
	s.Description = &v
	return s
}
1222671
func (s *DBClusterParameterGroup) SetDescription(v string) *DBClusterParameterGroup {
	s.Description = &v
	return s
}
235602
func (s *GatewayGroup) SetDescription(v string) *GatewayGroup {
	s.Description = &v
	return s
}
580227
func (s *Queue) SetDescription(v string) *Queue {
	s.Description = &v
	return s
}
1011336
func (s *RestoreTableToPointInTimeOutput) SetTableDescription(v *TableDescription) *RestoreTableToPointInTimeOutput {
	s.TableDescription = v
	return s
}
1175242
func (s *ModifyGlobalClusterOutput) SetGlobalCluster(v *GlobalCluster) *ModifyGlobalClusterOutput {
	s.GlobalCluster = v
	return s
}
106904
func (s *CreateTableInput) SetGlobalSecondaryIndexes(v []*GlobalSecondaryIndex) *CreateTableInput {
	s.GlobalSecondaryIndexes = v
	return s
}
319341
func (s *CreateGlobalClusterInput) SetGlobalClusterIdentifier(v string) *CreateGlobalClusterInput {
	s.GlobalClusterIdentifier = &v
	return s
}
583967
func (c Config) SetGlobal(option GlobalOption, value string) {
	if globals, ok := c[Globals]; ok {
		if settings, ok := globals.(map[GlobalOption]string); ok {
			settings[option] = value
		}
	}
}
284191
func (api OrganizationsAPI) SetDescription(w http.ResponseWriter, r *http.Request) {
	globalId := mux.Vars(r)["globalid"]
	var localInfo organization.LocalizedInfoText

	if err := json.NewDecoder(r.Body).Decode(&localInfo); err != nil {
		log.Debug("Error decoding the localized description:", err)
		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
		return
	}
	langKey := parseLangKey(localInfo.LangKey)
	if langKey == "" {
		log.Debug("Error decoding the localized description: invalid language key")
		http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)
		return
	}
	localInfo.LangKey = langKey
	descriptionMgr := organization.NewDescriptionManager(r)
	err := descriptionMgr.SaveDescription(globalId, localInfo)
	if err != nil {
		log.Error("ERROR while saving localized description: ", err)
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}
	w.WriteHeader(http.StatusCreated)
	w.Header().Set("Content-Type", "application/json")
	json.NewEncoder(w).Encode(localInfo)
}