// isInstanceID determines whether a service ID specifies an individual instance
430194
func isInstanceID(serviceID string) bool {
	slash := strings.LastIndexAny(serviceID, "/")
	if slash >= 0 && slash < len(serviceID)-1 {
		if isInstance, _ := regexp.MatchString("^[0-9]+$", serviceID[slash+1:]); isInstance {
			return true
		}
	}
	return false
}
453770
func (s *Volume) SetInstanceId(v string) *Volume {
	s.InstanceId = &v
	return s
}
1059253
func (s *GetInstanceAccessInput) SetInstanceId(v string) *GetInstanceAccessInput {
	s.InstanceId = &v
	return s
}
891533
func (s *DescribeInstancesInput) SetInstanceId(v string) *DescribeInstancesInput {
	s.InstanceId = &v
	return s
}
754392
func (s *DeregisterManagedInstanceInput) SetInstanceId(v string) *DeregisterManagedInstanceInput {
	s.InstanceId = &v
	return s
}
933295
func (s *UpdateInstanceInput) SetInstanceId(v string) *UpdateInstanceInput {
	s.InstanceId = &v
	return s
}
141163
func (s *UpdateContactAttributesInput) SetInstanceId(v string) *UpdateContactAttributesInput {
	s.InstanceId = &v
	return s
}
505416
func (s *DeleteUserInput) SetInstanceId(v string) *DeleteUserInput {
	s.InstanceId = &v
	return s
}
1101400
func (s *AssignInstanceInput) SetInstanceId(v string) *AssignInstanceInput {
	s.InstanceId = &v
	return s
}
636299
func (s *DeregisterInstanceInput) SetInstanceId(v string) *DeregisterInstanceInput {
	s.InstanceId = &v
	return s
}
1001909
func (s *DescribeUserHierarchyGroupInput) SetInstanceId(v string) *DescribeUserHierarchyGroupInput {
	s.InstanceId = &v
	return s
}
1152044
func (s *GrantAccessInput) SetInstanceId(v string) *GrantAccessInput {
	s.InstanceId = &v
	return s
}
333801
func (s *GetCommandInvocationInput) SetInstanceId(v string) *GetCommandInvocationInput {
	s.InstanceId = &v
	return s
}
1206152
func (s *DescribeEffectiveInstanceAssociationsInput) SetInstanceId(v string) *DescribeEffectiveInstanceAssociationsInput {
	s.InstanceId = &v
	return s
}
335701
func (s *ServiceError) SetInstanceId(v string) *ServiceError {
	s.InstanceId = &v
	return s
}
33862
func (s *TemporaryCredential) SetInstanceId(v string) *TemporaryCredential {
	s.InstanceId = &v
	return s
}
332592
func (s *RecordLifecycleActionHeartbeatInput) SetInstanceId(v string) *RecordLifecycleActionHeartbeatInput {
	s.InstanceId = &v
	return s
}