// MarshalFields encodes the AWS API shape using the passed in protocol encoder.
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
// MarshalFields encodes the AWS API shape using the passed in protocol encoder .
func (s Cluster) MarshalFields(e protocol.FieldEncoder) error {
	if s.Arn != nil {
		v := *s.Arn
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "arn", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	if s.CertificateAuthority != nil {
		v := s.CertificateAuthority
		metadata := protocol.Metadata{}
		e.SetFields(protocol.BodyTarget, "certificateAuthority", v, metadata)
	}
	if s.ClientRequestToken != nil {
		v := *s.ClientRequestToken
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "clientRequestToken", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	if s.CreatedAt != nil {
		v := *s.CreatedAt
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "createdAt", protocol.TimeValue{V: v, Format: protocol.UnixTimeFormat}, metadata)
	}
	if s.Endpoint != nil {
		v := *s.Endpoint
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "endpoint", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	if s.Name != nil {
		v := *s.Name
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "name", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	if s.ResourcesVpcConfig != nil {
		v := s.ResourcesVpcConfig
		metadata := protocol.Metadata{}
		e.SetFields(protocol.BodyTarget, "resourcesVpcConfig", v, metadata)
	}
	if s.RoleArn != nil {
		v := *s.RoleArn
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "roleArn", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	if len(s.Status) > 0 {
		v := s.Status
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "status", protocol.QuotedValue{ValueMarshaler: v}, metadata)
	}
	if s.Version != nil {
		v := *s.Version
		metadata := protocol.Metadata{}
		e.SetValue(protocol.BodyTarget, "version", protocol.QuotedValue{ValueMarshaler: protocol.StringValue(v)}, metadata)
	}
	return nil
}
func ( s Cluster ) MarshalFields ( e protocol . FieldEncoder ) error { if s . Arn != nil { v := * s . Arn metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } if s . CertificateAuthority != nil { v := s . CertificateAuthority metadata := protocol . Metadata { } e . SetFields ( protocol . BodyTarget , " " , v , metadata ) } if s . ClientRequestToken != nil { v := * s . ClientRequestToken metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } if s . CreatedAt != nil { v := * s . CreatedAt metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . TimeValue { V : v , Format : protocol . UnixTimeFormat } , metadata ) } if s . Endpoint != nil { v := * s . Endpoint metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } if s . Name != nil { v := * s . Name metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } if s . ResourcesVpcConfig != nil { v := s . ResourcesVpcConfig metadata := protocol . Metadata { } e . SetFields ( protocol . BodyTarget , " " , v , metadata ) } if s . RoleArn != nil { v := * s . RoleArn metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } if len ( s . Status ) > 0 { v := s . Status metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : v } , metadata ) } if s . Version != nil { v := * s . Version metadata := protocol . Metadata { } e . SetValue ( protocol . BodyTarget , " " , protocol . QuotedValue { ValueMarshaler : protocol . StringValue ( v ) } , metadata ) } return nil }
MarshalFields encodes the AWS API shape using the passed in protocol encoder.
MarshalFields encodes the AWS API shape using the passed in protocol encoder .